Module: Charcoal::Utilities
- Included in:
- CrossOriginController
- Defined in:
- lib/charcoal/utilities.rb
Constant Summary collapse
- Routing =
defined?(ActionDispatch) ? ActionDispatch::Routing : ActionController::Routing
Instance Method Summary collapse
Instance Method Details
#allowed_methods_for?(protocol) ⇒ Boolean
6 7 8 9 10 |
# File 'lib/charcoal/utilities.rb', line 6 def allowed_methods_for?(protocol) @allowed_methods ||= {} return @allowed_methods[protocol] if @allowed_methods[protocol] @allowed_methods[protocol] = methods_allowed_for?(protocol) end |