changed properties and the name of hyperchad to selectricity
[selectricity] / vendor / plugins / engines / lib / engines / active_record_extensions.rb
1 module ::ActiveRecord
2   class Base
3     class << self
4       
5       # NOTE: Currently the Migrations system will ALWAYS wrap given table names
6       # in the prefix/suffix, so any table name set via config(:table_name), for instnace
7       # will always get wrapped in the process of migration. For this reason, whatever
8       # value you give to the config will be wrapped when set_table_name is used in the
9       # model.
10       
11       def wrapped_table_name(name)
12         table_name_prefix + name + table_name_suffix
13       end
14     end
15   end
16 end
17
18 # Set ActiveRecord to ignore the engine_schema_info table by default
19 unless Rails::VERSION::STRING =~ /^1\.0\./
20   ::ActiveRecord::SchemaDumper.ignore_tables << 'engine_schema_info'
21 end

Benjamin Mako Hill || Want to submit a patch?