Module: ActsAsPriceable::Schema
- Defined in:
- lib/acts_as_priceable/schema.rb
Defined Under Namespace
Modules: CommandRecorder, Statements, TableDefinition
Constant Summary collapse
- COLUMNS =
{ net: :integer, gross: :integer, tax: :integer }
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/acts_as_priceable/schema.rb', line 10 def self.included(base) ActiveRecord::ConnectionAdapters::Table.send :include, TableDefinition ActiveRecord::ConnectionAdapters::TableDefinition.send :include, TableDefinition ActiveRecord::ConnectionAdapters::AbstractAdapter.send :include, Statements if defined?(ActiveRecord::Migration::CommandRecorder) # Rails 3.1+ ActiveRecord::Migration::CommandRecorder.send :include, CommandRecorder end end |