Module: Yacht::RailsHelper
- Included in:
- ApplicationHelper
- Defined in:
- lib/monkeypatches/rails_helper.rb
Instance Method Summary collapse
-
#yacht_js_snippet(opts = {}) ⇒ Object
Create a string with a javascript version of Yacht values intended for inclusion in an HTML page.
Instance Method Details
#yacht_js_snippet(opts = {}) ⇒ Object
Note:
environment will be set to Rails.env by default
Create a string with a javascript version of Yacht values intended for inclusion in an HTML page
9 10 11 |
# File 'lib/monkeypatches/rails_helper.rb', line 9 def yacht_js_snippet(opts={}) javascript_tag Yacht::Loader.to_js_snippet(opts) end |