Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 935181f

Browse files
committed
closes #99
1 parent e83188a commit 935181f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/reactive_record/permissions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class << self
8787

8888
alias belongs_to_without_reactive_record_add_is_method belongs_to
8989

90-
def belongs_to(attr_name, scope = nil, options = {})
91-
belongs_to_without_reactive_record_add_is_method(attr_name, scope, options).tap do
90+
def belongs_to(attr_name, *args)
91+
belongs_to_without_reactive_record_add_is_method(attr_name, *args).tap do
9292
define_method "#{attr_name}_is?".to_sym do |model|
9393
self.class.reflections[attr_name].foreign_key == model.id
9494
end

0 commit comments

Comments
 (0)