Sha256: 82eb677e3daeb02919fee77e5f1b5da3c0e574ffd63913c49adca74323a57fc6

Contents?: true

Size: 1.11 KB

Versions: 19

Compression:

Stored size: 1.11 KB

Contents

module IuguSDK
  class Engine < Rails::Engine

    initializer "iugusdk.load_app_root" do |app|
      app.config.assets.precompile += %w( iugu-sdk.css settings.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

19 entries across 19 versions & 1 rubygems

Version Path
iugusdk-1.0.11 lib/iugusdk/engine.rb
iugusdk-1.0.10 lib/iugusdk/engine.rb
iugusdk-1.0.9 lib/iugusdk/engine.rb
iugusdk-1.0.8 lib/iugusdk/engine.rb
iugusdk-1.0.7 lib/iugusdk/engine.rb
iugusdk-1.0.6 lib/iugusdk/engine.rb
iugusdk-1.0.5 lib/iugusdk/engine.rb
iugusdk-1.0.4 lib/iugusdk/engine.rb
iugusdk-1.0.3 lib/iugusdk/engine.rb
iugusdk-1.0.2 lib/iugusdk/engine.rb
iugusdk-1.0.1 lib/iugusdk/engine.rb
iugusdk-1.0.0.alpha.32 lib/iugusdk/engine.rb
iugusdk-1.0.0.alpha.31 lib/iugusdk/engine.rb
iugusdk-1.0.0.alpha.30 lib/iugusdk/engine.rb
iugusdk-1.0.0.alpha.29 lib/iugusdk/engine.rb
iugusdk-1.0.0.alpha.28 lib/iugusdk/engine.rb
iugusdk-1.0.0.alpha.27 lib/iugusdk/engine.rb
iugusdk-1.0.0.alpha.26 lib/iugusdk/engine.rb
iugusdk-1.0.0.alpha.25 lib/iugusdk/engine.rb