Sha256: 5a9eea9ebd24359ad1cc74d8163b9f65062131a4f0fb713b870a17519edeb077

Contents?: true

Size: 1.11 KB

Versions: 16

Compression:

Stored size: 1.11 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_with_ujs.js kuppayam.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_girl, :dir => 'spec/factories'
      g.assets false
      g.helper false
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kuppayam-0.1.29 lib/kuppayam/engine.rb
kuppayam-0.1.28 lib/kuppayam/engine.rb
kuppayam-0.1.27 lib/kuppayam/engine.rb
kuppayam-0.1.26 lib/kuppayam/engine.rb
kuppayam-0.1.25 lib/kuppayam/engine.rb
kuppayam-0.1.24 lib/kuppayam/engine.rb
kuppayam-0.1.23 lib/kuppayam/engine.rb
kuppayam-0.1.22 lib/kuppayam/engine.rb
kuppayam-0.1.21 lib/kuppayam/engine.rb
kuppayam-0.1.20 lib/kuppayam/engine.rb
kuppayam-0.1.19 lib/kuppayam/engine.rb
kuppayam-0.1.18 lib/kuppayam/engine.rb
kuppayam-0.1.17 lib/kuppayam/engine.rb
kuppayam-0.1.16 lib/kuppayam/engine.rb
kuppayam-0.1.15 lib/kuppayam/engine.rb
kuppayam-0.1.14 lib/kuppayam/engine.rb