Module: Changebase::Inline
- Defined in:
- lib/changebase/inline.rb,
lib/changebase/inline/active_record.rb
Defined Under Namespace
Modules: ActiveRecord, HasMany, Through Classes: Event, Transaction
Class Method Summary collapse
Class Method Details
.load! ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/changebase/inline.rb', line 9 def self.load! require 'active_record' require 'changebase/active_record' ::ActiveRecord::Base.include(Changebase::ActiveRecord) ::ActiveRecord::ConnectionAdapters::AbstractAdapter.include(Changebase::ActiveRecord::Connection) require 'active_record/connection_adapters/postgresql_adapter' require 'changebase/inline/active_record' ::ActiveRecord::Base.include(Changebase::Inline::ActiveRecord) ::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.include(Changebase::Inline::ActiveRecord::PostgreSQLAdapter) ::ActiveRecord::Associations::HasManyThroughAssociation.prepend(Changebase::Inline::Through) ::ActiveRecord::Associations::HasManyAssociation.prepend(Changebase::Inline::HasMany) @loaded = true end |
.loaded? ⇒ Boolean
26 27 28 |
# File 'lib/changebase/inline.rb', line 26 def self.loaded? @loaded end |