aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-08-02 09:11:23 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-08-02 09:11:23 -0300
commit0d6e7ca9e5d376e741b00cfd9caddb8d6b30b84c (patch)
tree2f3be67730452cddb5393c7bf85e6a8b64efe250 /activerecord
parentab21a5cd951941004a61990993c64001cca65fb5 (diff)
downloadrails-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.rb3
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