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