Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # app/controllers/application.rb
- class ApplicationController < ActionController::Base
- before_filter :modify_protocol
- private
- def modify_protocol
- returning(true) do
- if Rails.configuration.protocol_modifier
- request.extend(Rails.configuration.protocol_modifier)
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment