Sha256: bdf901b9a600f6fb79ed322672242f0234583d4746694dfdcd3d215819876eb7

Contents?: true

Size: 1.1 KB

Versions: 13

Compression:

Stored size: 1.1 KB

Contents

module PushType
  module Core
    class Engine < ::Rails::Engine
      isolate_namespace PushType
      engine_name 'push_type'

      config.generators do |g|
        g.assets false
        g.helper false
        g.test_framework  :test_unit, fixture: false
        g.hidden_namespaces << 'push_type:dummy' << 'push_type:field'
      end

      config.assets.precompile += %w(
        *.gif *.jpg *.png *.svg *.eot *.ttf *.woff *.woff2
      )

      config.to_prepare do
        Rails.application.eager_load! unless Rails.application.config.cache_classes
      end

      initializer 'push_type.dragonfly_config' do
        PushType.config.dragonfly_secret ||= Rails.application.secrets.secret_key_base
        PushType.dragonfly_app_setup!
      end

      initializer 'push_type.application_controller' do
        ActiveSupport.on_load :action_controller do
          include PushType::ApplicationControllerMethods
        end
      end

      initializer 'push_type.menu_helpers' do
        ActiveSupport.on_load :action_view do
          include PushType::MenuBuilder::Helpers
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
push_type_core-0.12.1 lib/push_type/core/engine.rb
push_type_core-0.12.0 lib/push_type/core/engine.rb
push_type_core-0.12.0.beta.1 lib/push_type/core/engine.rb
push_type_core-0.11.2 lib/push_type/core/engine.rb
push_type_core-0.11.1 lib/push_type/core/engine.rb
push_type_core-0.11.0.beta.2 lib/push_type/core/engine.rb
push_type_core-0.11.0.beta.1 lib/push_type/core/engine.rb
push_type_core-0.10.4 lib/push_type/core/engine.rb
push_type_core-0.10.3 lib/push_type/core/engine.rb
push_type_core-0.10.2 lib/push_type/core/engine.rb
push_type_core-0.10.1 lib/push_type/core/engine.rb
push_type_core-0.10.0 lib/push_type/core/engine.rb
push_type_core-0.10.0.beta.5 lib/push_type/core/engine.rb