Sha256: 512a0b25d93002c016e0fba7a1bbd3854cfca7a9e7639a475691980aacedce78
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
module BarkestCore ## # An application controller base with a few modifications making it ideal for the parent class to engine controllers. class EngineControllerBase < ApplicationControllerBase # As an engine, we need to make sure the NotLoggedIn exception flows properly. # If we let this fall through, it looks for the route inside our engine. # We need to tell it to look at the main app instead. rescue_from NotLoggedIn do |exception| flash[:info] = exception.message redirect_to main_app.login_url end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
barkest_core-1.5.4.0 | app/controllers/barkest_core/engine_controller_base.rb |
barkest_core-1.5.3.0 | app/controllers/barkest_core/engine_controller_base.rb |