Skip to content
Browse files

Remove useless begin..end

  • Loading branch information...
1 parent ab21a5c commit 0d6e7ca9e5d376e741b00cfd9caddb8d6b30b84c @carlosantoniodasilva carlosantoniodasilva committed Aug 2, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/core.rb
View
3 activerecord/lib/active_record/core.rb
@@ -134,13 +134,12 @@ def arel_table
# 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

0 comments on commit 0d6e7ca

Please sign in to comment.
Something went wrong with that request. Please try again.