diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-05-15 18:53:47 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-05-15 18:53:47 +0100 |
commit | 47c9a355062888feb2c7ea7c794e914a9b78f50c (patch) | |
tree | b9aab486b7fb4bde85f503fb2e2e4d52fac8731d /activerecord/lib | |
parent | fa99de0bd054576336c940ca78f3d1b35b6e490e (diff) | |
download | rails-47c9a355062888feb2c7ea7c794e914a9b78f50c.tar.gz rails-47c9a355062888feb2c7ea7c794e914a9b78f50c.tar.bz2 rails-47c9a355062888feb2c7ea7c794e914a9b78f50c.zip |
Reset quoted_table_name after set_table_name [#4568 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index e7319ce8b9..04c474c9a1 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -668,7 +668,6 @@ module ActiveRecord #:nodoc: name = "#{full_table_name_prefix}#{contained}#{undecorated_table_name(base.name)}#{table_name_suffix}" end - @quoted_table_name = nil set_table_name(name) name end @@ -702,6 +701,7 @@ module ActiveRecord #:nodoc: # set_table_name "project" # end def set_table_name(value = nil, &block) + @quoted_table_name = nil define_attr_method :table_name, value, &block end alias :table_name= :set_table_name |