aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/readonly_attributes.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-01-01 04:33:59 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-01-01 04:33:59 +0900
commit6ba7adbaa76244e9e592f5672c8411dd0b4e7fce (patch)
tree7dbe7486207793862f391a7afa42cf1096cb30ba /activerecord/lib/active_record/readonly_attributes.rb
parentac0b28883b78999c5605d032eb42fcd842841e6b (diff)
downloadrails-6ba7adbaa76244e9e592f5672c8411dd0b4e7fce.tar.gz
rails-6ba7adbaa76244e9e592f5672c8411dd0b4e7fce.tar.bz2
rails-6ba7adbaa76244e9e592f5672c8411dd0b4e7fce.zip
Refactor `CollectionAssociation#ids_reader`
Simply we can do `target.pluck(reflection.association_primary_key)` if `target` is loaded.
Diffstat (limited to 'activerecord/lib/active_record/readonly_attributes.rb')
0 files changed, 0 insertions, 0 deletions