diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-12 16:36:36 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-12 16:36:36 -0700 |
commit | 0ee351b428e038394d495c20a868d40ad3032e83 (patch) | |
tree | 4e4726abe425361b1677947c5af2e979e3e0d022 /activerecord | |
parent | d7e23109136733995bfadbe461ae18680a7426b5 (diff) | |
download | rails-0ee351b428e038394d495c20a868d40ad3032e83.tar.gz rails-0ee351b428e038394d495c20a868d40ad3032e83.tar.bz2 rails-0ee351b428e038394d495c20a868d40ad3032e83.zip |
remove unnecessary is_a check
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 2ba89b13b7..5ea103f6e9 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -66,8 +66,7 @@ module ActiveRecord # Invoice.reflect_on_association(:line_items).macro # returns :has_many # def reflect_on_association(association) - reflection = reflections[association] - reflection if reflection.is_a?(AssociationReflection) + reflections[association] end # Returns an array of AssociationReflection objects for all associations which have <tt>:autosave</tt> enabled. |