Module: Motr::Controller::Helpers::ClassMethods
- Defined in:
- lib/motr/controller/helpers.rb
Overview
:nodoc:
Instance Method Summary (collapse)
-
- (Object) add_response_meta(options)
Adds additional "meta" information to AJAX response headers.
-
- (Object) enable_script_events(opts = {})
deprecated
Deprecated.
Use add_response_meta
Instance Method Details
- (Object) add_response_meta(options)
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 |
- (Object) enable_script_events(opts = {})
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 |