diff options
author | Thiago Pradi <tchandy@gmail.com> | 2010-06-14 12:01:00 -0300 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-06-14 17:32:45 +0200 |
commit | 8d82bef58a002b4441d86d0b08e7a5fd493c7e39 (patch) | |
tree | 6af4ca0ff756eb14557ebcf7f7759c939b9dabc2 | |
parent | bf7429041e64ee0f347764a4579c8c1d14d5b391 (diff) | |
download | rails-8d82bef58a002b4441d86d0b08e7a5fd493c7e39.tar.gz rails-8d82bef58a002b4441d86d0b08e7a5fd493c7e39.tar.bz2 rails-8d82bef58a002b4441d86d0b08e7a5fd493c7e39.zip |
Documentation for #quoted_table_name method
Signed-off-by: Xavier Noria <fxn@hashref.com>
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
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 |