Forked from craigmcnamara/responder_override_controller.rb
Created
February 15, 2014 09:22
-
-
Save nbomberger/9016633 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SpecialResponderController < ActionController::Base | |
protected | |
def self.responder | |
lambda do |controller, resources, options| | |
if controller.is_special? | |
SpecialResponder.call(controller, resources, options) | |
else | |
super.call(controller, resources, options) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment