Module: RailsHttpOptions
- Defined in:
- lib/rails_http_options.rb,
lib/rails_http_options/version.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/rails_http_options.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#options ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rails_http_options.rb', line 16 def return head :ok if controller_for(url: request.url)..nil? return render({ json: instance_exec( route_details_for(request.url), &controller_for(url: request.url). ) }) end |