Sha256: f7a39885bcbb9b70c5784844edc584b3b592b46b3edee6521f1495054980e577
Contents?: true
Size: 1.1 KB
Versions: 8
Compression:
Stored size: 1.1 KB
Contents
module IuguSDK class Engine < Rails::Engine initializer "iugusdk.load_app_root" do |app| app.config.assets.precompile += %w( iugu-sdk.css ) IuguSDK.app_root = app.root app.class.configure do config.paths['db/migrate'] += IuguSDK::Engine.paths['db/migrate'].existent end #app.config.middleware.insert_before( app.config.session_store, SessionParameterMiddleware, app.config.session_options[:key]) # app.middleware.insert_before( app.config.session_store, IuguSDK::SessionParameterMiddleware, app.config.session_options[:key]) # config.middleware.insert_before( ActionDispatch::Session::CookieStore, SessionParameterMiddleware, app.config.session_options[:key] ) end initializer 'iugusdk.action_controller' do |app| ActiveSupport.on_load(:action_controller) do include IuguSDK::Controllers::Helpers helper_method "search_user_account", "current_user_account", "is_active?", "body_classes", "current_account", "get_compatible_locale" ActionController::Base.send(:include, IuguSDKBaseController) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems