Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nbomberger/9016633 to your computer and use it in GitHub Desktop.
Save nbomberger/9016633 to your computer and use it in GitHub Desktop.
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