Sha256: 2cb7f9c7def05a2f91f5997af7b9d71aaefc95096a99eb86576c8ceeb69c8370

Contents?: true

Size: 989 Bytes

Versions: 5

Compression:

Stored size: 989 Bytes

Contents

require 'has_many_polymorphic'
require 'attr_encrypted'
require 'awesome_nested_set'
require 'data_migrator'

module ErpBaseErpSvcs
  class Engine < Rails::Engine
    isolate_namespace ErpBaseErpSvcs

    config.erp_base_erp_svcs = ErpBaseErpSvcs::Config

	  ActiveSupport.on_load(:active_record) do
      include ErpBaseErpSvcs::Extensions::ActiveRecord::IsDescribable
      include ErpBaseErpSvcs::Extensions::ActiveRecord::HasNotes
      include ErpBaseErpSvcs::Extensions::ActiveRecord::ActsAsNoteType
	    include ErpBaseErpSvcs::Extensions::ActiveRecord::ActsAsErpType
      include ErpBaseErpSvcs::Extensions::ActiveRecord::ActsAsCategory
      include ErpBaseErpSvcs::Extensions::ActiveRecord::HasContact
      extend ErpBaseErpSvcs::Extensions::ActiveRecord::StiInstantiation::ActMacro
    end

    engine = self
    config.to_prepare do
      ErpBaseErpSvcs.register_compass_ae_engine(engine)
      ErpBaseErpSvcs.load_root_compass_ae_framework_extensions
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
erp_base_erp_svcs-3.0.5 lib/erp_base_erp_svcs/engine.rb
erp_base_erp_svcs-3.0.4 lib/erp_base_erp_svcs/engine.rb
erp_base_erp_svcs-3.0.3 lib/erp_base_erp_svcs/engine.rb
erp_base_erp_svcs-3.0.2 lib/erp_base_erp_svcs/engine.rb
erp_base_erp_svcs-3.0.1 lib/erp_base_erp_svcs/engine.rb