Module: Motr::Controller::Helpers::ClassMethods
- Defined in:
- lib/motr/controller/helpers.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#add_response_meta(options) ⇒ Object
Adds additional “meta” information to AJAX response headers.
-
#enable_script_events(opts = {}) ⇒ Object
deprecated
Deprecated.
Use add_response_meta
Instance Method Details
#add_response_meta(options) ⇒ Object
Adds additional “meta” information to AJAX response headers. By default an additional X-Response-Meta header is added to ajax requests which describes the current controller/action names. Passing additional information to this method adds data to that header.
66 67 68 |
# File 'lib/motr/controller/helpers.rb', line 66 def () self. = end |
#enable_script_events(opts = {}) ⇒ Object
Deprecated.
Use add_response_meta
73 74 75 76 |
# File 'lib/motr/controller/helpers.rb', line 73 def enable_script_events(opts = {}) ActiveSupport::Deprecation.warn("enable_script_events is deprecated. Please use the 'add_response_meta helper'") = opts end |