Sha256: edd7ec791f4790207cfd708201135301cc532e15d63ec2776e7d524d815979a4

Contents?: true

Size: 1.14 KB

Versions: 18

Compression:

Stored size: 1.14 KB

Contents

module Kuppayam
  class Engine < ::Rails::Engine

    require 'kaminari'
    require 'jquery-rails'
    
    config.autoload_paths << File.expand_path("../extras", __FILE__)
    
  	initializer "kuppayam.assets.precompile" do |app|
      app.config.assets.precompile += %w( kuppayam.js jquery_and_family.js kuppayam.css jquery_and_family.css wysiwyg-color.css)
    end

    config.before_initialize do                                                      
      config.i18n.load_path += Dir["#{config.root}/config/locales/**/*.yml"]
    end

    initializer "kuppayam.action_view" do |app|
      ActiveSupport.on_load :action_view do
        include Kuppayam::ActionView::FormHelper
        include Kuppayam::ActionView::ModalHelper
        include Kuppayam::ActionView::ThemeHelper
      end
    end

    config.to_prepare do
      Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c|
        require_dependency(c)
      end
    end

    config.generators do |g|
      g.test_framework      :rspec, :fixture => false
      g.fixture_replacement :factory_bot, :dir => 'spec/factories'
      g.assets false
      g.helper false
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
kuppayam-0.2.12.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.11.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.10.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.9.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.8.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.7.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.6.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.5.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.4.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.3.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.2.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.1.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.2.0.pre.materialize lib/kuppayam/engine.rb
kuppayam-0.1.39 lib/kuppayam/engine.rb
kuppayam-0.1.38 lib/kuppayam/engine.rb
kuppayam-0.1.37 lib/kuppayam/engine.rb
kuppayam-0.1.36 lib/kuppayam/engine.rb
kuppayam-0.1.35 lib/kuppayam/engine.rb