diff options
author | wycats <wycats@gmail.com> | 2010-03-28 23:45:38 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-28 23:45:38 -0700 |
commit | 5f7bc47303933ec67700f6390c98d889f6d9b0d1 (patch) | |
tree | 7bf9cb1052e2c7cb783ca6ce6d2cde64fea07ee2 /activerecord | |
parent | 67d1cec4c8a65846cc3b2779bc5eca7b8b73e6fc (diff) | |
download | rails-5f7bc47303933ec67700f6390c98d889f6d9b0d1.tar.gz rails-5f7bc47303933ec67700f6390c98d889f6d9b0d1.tar.bz2 rails-5f7bc47303933ec67700f6390c98d889f6d9b0d1.zip |
Rename modularized_table_name_prefix to full_table_name_prefix [#4032 state:resolved]
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 289c95ad8f..4d9493e82f 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -768,7 +768,7 @@ module ActiveRecord #:nodoc: contained = contained.singularize if parent.pluralize_table_names contained << '_' end - name = "#{modularized_table_name_prefix}#{contained}#{undecorated_table_name(base.name)}#{table_name_suffix}" + name = "#{full_table_name_prefix}#{contained}#{undecorated_table_name(base.name)}#{table_name_suffix}" end @quoted_table_name = nil @@ -776,7 +776,7 @@ module ActiveRecord #:nodoc: name end - def modularized_table_name_prefix #:nodoc: + def full_table_name_prefix #:nodoc: (parents.detect{ |p| p.respond_to?(:table_name_prefix) } || self).table_name_prefix end |