Skip to content

Commit

Permalink
Remove passing argument to singular and collection association readers
Browse files Browse the repository at this point in the history
Follow up of 09cac8c.
  • Loading branch information
kamipo committed Jan 4, 2018
1 parent 0756303 commit 39f6c6c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -104,8 +104,8 @@ def self.define_accessors(model, reflection)

def self.define_readers(mixin, name)
mixin.class_eval <<-CODE, __FILE__, __LINE__ + 1
def #{name}(*args)
association(:#{name}).reader(*args)
def #{name}
association(:#{name}).reader
end
CODE
end
Expand Down

0 comments on commit 39f6c6c

Please sign in to comment.