diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-08-02 09:11:23 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-08-02 09:11:23 -0300 |
commit | 0d6e7ca9e5d376e741b00cfd9caddb8d6b30b84c (patch) | |
tree | 2f3be67730452cddb5393c7bf85e6a8b64efe250 /activerecord | |
parent | ab21a5cd951941004a61990993c64001cca65fb5 (diff) | |
download | rails-0d6e7ca9e5d376e741b00cfd9caddb8d6b30b84c.tar.gz rails-0d6e7ca9e5d376e741b00cfd9caddb8d6b30b84c.tar.bz2 rails-0d6e7ca9e5d376e741b00cfd9caddb8d6b30b84c.zip |
Remove useless begin..end
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index e088021112..609905b2ea 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -134,13 +134,12 @@ module ActiveRecord # Returns the Arel engine. def arel_engine - @arel_engine ||= begin + @arel_engine ||= if Base == self || connection_handler.retrieve_connection_pool(self) self else superclass.arel_engine end - end end private |