Sha256: d57fca844cbca0d3c6ccf0dbedfd6311065dc1fb7c7c4c364158f190b3e12bde
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
module IuguSDK class Engine < Rails::Engine initializer "iugusdk.load_app_root" do |app| IuguSDK.app_root = app.root app.config.middleware.insert_before( app.config.session_store, 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" ActionController::Base.send(:include, IuguSDKBaseController) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iugusdk-1.0.0.alpha.5 | lib/iugusdk/engine.rb |
iugusdk-1.0.0.alpha.4 | lib/iugusdk/engine.rb |