aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-01 16:16:06 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-01 16:16:06 -0200
commitcd93d7175e3f92c77744110204dc9194a3aa592c (patch)
tree7fd50e8a0f96f7e9015cffd8dde00fdc9a0ac5d9 /activerecord/lib/active_record/core.rb
parent83ea905fd106872841bf7219f108ef9d2299d86a (diff)
downloadrails-cd93d7175e3f92c77744110204dc9194a3aa592c.tar.gz
rails-cd93d7175e3f92c77744110204dc9194a3aa592c.tar.bz2
rails-cd93d7175e3f92c77744110204dc9194a3aa592c.zip
Make arel methods private API
Since its conception arel was made to be private API of Active Record. If users want to use arel features directly we should provide a way using the Active Record API without exposing the arel implementation.
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index 6303fe5ee4..d691192cfd 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -138,12 +138,12 @@ module ActiveRecord
# class Post < ActiveRecord::Base
# scope :published_and_commented, -> { published.and(self.arel_table[:comments_count].gt(0)) }
# end
- def arel_table
+ def arel_table # :nodoc:
@arel_table ||= Arel::Table.new(table_name, arel_engine)
end
# Returns the Arel engine.
- def arel_engine
+ def arel_engine # :nodoc:
@arel_engine ||=
if Base == self || connection_handler.retrieve_connection_pool(self)
self