-
-
Save Bonias/4ce18e30881480f42a9d to your computer and use it in GitHub Desktop.
decent_exposure with responders integration
This file contains 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
# app/controllers/application_controller.rb | |
class ApplicationController < ActionController::Base | |
self.responder = ApplicationResponder | |
respond_to :html | |
decent_configuration do | |
strategy DecentExposure::StrongParametersStrategy | |
end | |
end |
This file contains 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
# app/responders/application_responder.rb | |
class ApplicationResponder < ActionController::Responder | |
include Responders::FlashResponder | |
include Responders::HttpCacheResponder | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment