Module: CollectionJson::Rails::AcceptTemplate
- Defined in:
- lib/collection_json_rails/action_controller/accept_template.rb
Instance Method Summary collapse
Instance Method Details
#accept_template!(key) ⇒ Object
3 4 5 6 |
# File 'lib/collection_json_rails/action_controller/accept_template.rb', line 3 def accept_template!(key) return params.require(key) unless template_is_valid? parse_template_as_params!(params, key).require(key) end |