Sha256: f4912770068bf4b152fc34f2fdf8e74e1ede7e659bc53dc69449fe26a8a18a3e

Contents?: true

Size: 635 Bytes

Versions: 2

Compression:

Stored size: 635 Bytes

Contents

require "tkh_admin_panel/version"
require 'bootstrap-sass'
require 'simple_form'
require 'tkh_admin_panel/tkh_admin_panel_action_controller_extension'
require 'tkh_authentication'

module TkhAdminPanel
  class Engine < ::Rails::Engine
    initializer "TkhAdminPanel precompile hook", :group => :all do |app|
      app.config.assets.precompile += ['admin.js', 'admin.css']
    end
    
    # to extend the application_controller in the host app
    initializer 'tkh_admin_panel.controller' do |app|
      ActiveSupport.on_load(:action_controller) do  
         include TkhAdminPanelActionControllerExtension
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tkh_admin_panel-0.9 lib/tkh_admin_panel.rb
tkh_admin_panel-0.3.5 lib/tkh_admin_panel.rb