Sha256: 067113638fd5fa8d58ad5615dba581ec619c7db5eaedecf940e1d3be6f4b091b

Contents?: true

Size: 1.13 KB

Versions: 7

Compression:

Stored size: 1.13 KB

Contents

module Alchemy
  module Custom
    module Model
      class Engine < ::Rails::Engine
        isolate_namespace Alchemy::Custom::Model
        #engine_name 'alchemy'

        config.autoload_paths << config.root.join('lib')

        initializer "alchemy_custom_model.assets.precompile" do |app|
          app.config.assets.precompile << 'alchemy_custom_model_manifest.js'
          app.config.assets.precompile << 'elfinder/css/elfinder.min.css'
          app.config.assets.precompile << 'elfinder/css/theme.css'
          app.config.assets.paths << config.root.join("vendor")

        end

        config.to_prepare do

          Alchemy::PagesController.include(PagesControllerDec)

          # load degli helpers per alchemy
          [
            Alchemy::Custom::Model::Engine.root.join('app', 'helpers', 'alchemy', 'pages_helper_decorator.rb')
          ].each do |f|
            Rails.configuration.cache_classes ? require(f) : load(f)
          end


        end


        # initializer "alchemy_richmedia_essences.register_ability" do
        #   Alchemy.register_ability Alchemy::Richmedia::Essences::Ability
        # end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy-custom-model-0.1.6 lib/alchemy/custom/model/engine.rb
alchemy-custom-model-0.1.5 lib/alchemy/custom/model/engine.rb
alchemy-custom-model-0.1.4 lib/alchemy/custom/model/engine.rb
alchemy-custom-model-0.1.3 lib/alchemy/custom/model/engine.rb
alchemy-custom-model-0.1.2 lib/alchemy/custom/model/engine.rb
alchemy-custom-model-0.1.1 lib/alchemy/custom/model/engine.rb
alchemy-custom-model-0.1.0 lib/alchemy/custom/model/engine.rb