method
remove_prefix_and_suffix
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::SchemaDumper
remove_prefix_and_suffix(table)private
No documentation available.
# File activerecord/lib/active_record/schema_dumper.rb, line 241
def remove_prefix_and_suffix(table)
table.gsub(/^(#{@options[:table_name_prefix]})(.+)(#{@options[:table_name_suffix]})$/, "\\2")
end