1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Rename modularized_table_name_prefix to full_table_name_prefix [#4032 state:resolved]

This commit is contained in:
wycats 2010-03-28 23:45:38 -07:00
parent 67d1cec4c8
commit 5f7bc47303

View file

@ -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