aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorThiago Pradi <tchandy@gmail.com>2010-06-14 12:01:00 -0300
committerXavier Noria <fxn@hashref.com>2010-06-14 17:32:45 +0200
commit8d82bef58a002b4441d86d0b08e7a5fd493c7e39 (patch)
tree6af4ca0ff756eb14557ebcf7f7759c939b9dabc2 /activerecord/lib/active_record/base.rb
parentbf7429041e64ee0f347764a4579c8c1d14d5b391 (diff)
downloadrails-8d82bef58a002b4441d86d0b08e7a5fd493c7e39.tar.gz
rails-8d82bef58a002b4441d86d0b08e7a5fd493c7e39.tar.bz2
rails-8d82bef58a002b4441d86d0b08e7a5fd493c7e39.zip
Documentation for #quoted_table_name method
Signed-off-by: Xavier Noria <fxn@hashref.com>
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 63ab6efae2..110f131e6c 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -647,10 +647,12 @@ module ActiveRecord #:nodoc:
reset_table_name
end
+ # Returns a quoted version of the table name, used to construct SQL statements.
def quoted_table_name
@quoted_table_name ||= connection.quote_table_name(table_name)
end
+ # Computes the table name, resets it internally, and returns it.
def reset_table_name #:nodoc:
base = base_class