Module: Charcoal::CrossOrigin
- Included in:
- CrossOriginController
- Defined in:
- lib/charcoal/cross_origin.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/charcoal/cross_origin.rb', line 5 def self.included(klass) klass.extend(ClassMethods) if klass.respond_to?(:around_action) klass.around_action :set_cors_headers_filter, if: :cors_allowed? else klass.around_filter :set_cors_headers_filter, if: :cors_allowed? end end |