diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-01-05 08:31:57 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-01-05 08:31:57 +0900 |
commit | 39f6c6c641f0c92c532e0c3747d1536af657920f (patch) | |
tree | 8bd21fd6068083cddf0c2dd493c28f4783505112 /activerecord/lib/active_record/associations | |
parent | 07563036b0b5c5ddf5b1a31473aa2a2b32b608f5 (diff) | |
download | rails-39f6c6c641f0c92c532e0c3747d1536af657920f.tar.gz rails-39f6c6c641f0c92c532e0c3747d1536af657920f.tar.bz2 rails-39f6c6c641f0c92c532e0c3747d1536af657920f.zip |
Remove passing argument to singular and collection association readers
Follow up of 09cac8c67afdc4b2a1c6ae07931ddc082629b277.
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/builder/association.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/builder/association.rb b/activerecord/lib/active_record/associations/builder/association.rb index ca3032d967..7c69cd65ee 100644 --- a/activerecord/lib/active_record/associations/builder/association.rb +++ b/activerecord/lib/active_record/associations/builder/association.rb @@ -104,8 +104,8 @@ module ActiveRecord::Associations::Builder # :nodoc: 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 |