aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/inheritance.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2016-02-10 14:42:09 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2016-02-10 14:42:09 -0800
commit81f75f578a06bafd7cb23643760788a8ddc8d657 (patch)
tree7ea87705c70fda460b3380814d57b9bc34a4d9cf /activerecord/lib/active_record/inheritance.rb
parent3553fe03ad974bad6a97b1853b1b27c4798f1d06 (diff)
downloadrails-81f75f578a06bafd7cb23643760788a8ddc8d657.tar.gz
rails-81f75f578a06bafd7cb23643760788a8ddc8d657.tar.bz2
rails-81f75f578a06bafd7cb23643760788a8ddc8d657.zip
check `supports_view_paths?` at registration time
If we check the conditional at registration time, then we can avoid the conditional at runtime. This commit checks for view path support when the handler is registered so that runtime calls to `find_dependencies` won't need to check the conditional. The idea is that `register_tracker` is called only once where `find_dependencies` may be called many times.
Diffstat (limited to 'activerecord/lib/active_record/inheritance.rb')
0 files changed, 0 insertions, 0 deletions