Sha256: 9b17d25d89abd5c04ba578056811b80cdab1d8a47bf6b611c77aa06b0b61953c

Contents?: true

Size: 680 Bytes

Versions: 3

Compression:

Stored size: 680 Bytes

Contents

module ::ActiveRecord
  class Base
    class << self
      
      # NOTE: Currently the Migrations system will ALWAYS wrap given table names
      # in the prefix/suffix, so any table name set via config(:table_name), for instnace
      # will always get wrapped in the process of migration. For this reason, whatever
      # value you give to the config will be wrapped when set_table_name is used in the
      # model.
      
      def wrapped_table_name(name)
        table_name_prefix + name + table_name_suffix
      end
    end
  end
end

# Set ActiveRecord to ignore the engine_schema_info table by default
::ActiveRecord::SchemaDumper.ignore_tables << 'engine_schema_info'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
parlement-0.4 vendor/plugins/engines/lib/engines/active_record_extensions.rb
parlement-0.5 vendor/plugins/engines/lib/engines/active_record_extensions.rb
parlement-0.6 vendor/plugins/engines/lib/engines/active_record_extensions.rb