aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/RUNNING_UNIT_TESTS.rdoc
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2014-06-02 14:14:08 -0400
committereileencodes <eileencodes@gmail.com>2014-06-02 23:01:59 -0400
commit46acd8b86da6886560cba20f29515215ec8b9c38 (patch)
treedc8948489990738deb2c28e911e6db9e4f342ec5 /activerecord/RUNNING_UNIT_TESTS.rdoc
parente2a97adbae6c90b1a749d28ed9aae1f83ec524e9 (diff)
downloadrails-46acd8b86da6886560cba20f29515215ec8b9c38.tar.gz
rails-46acd8b86da6886560cba20f29515215ec8b9c38.tar.bz2
rails-46acd8b86da6886560cba20f29515215ec8b9c38.zip
fix polymorphic? method and reuse it
Fix polymorphic to check for `options[:polymorphic]` instead of `options.key? :polymorphic` and then reuse the method `polymorphic?` method instead of constantly checking the same `options[:polymorphic]`.
Diffstat (limited to 'activerecord/RUNNING_UNIT_TESTS.rdoc')
0 files changed, 0 insertions, 0 deletions