The before_filter method is probably what you want to use.
You can simply add your own controller than inherit from MercuryController, and specify the routes to your controller:
In config / routes.rb:
... match '/editor(/*requested_uri)' => "my_mercury#edit", :as => :mercury_editor Mercury::Engine.routes ...
And application / controllers / my_mercury_controller.rb
class MyMercuryController < MercuryController before_filter :login_required def login_required ... end end
source share