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
Create a string with a javascript version of Yacht values intended for inclusion in an HTML page
7 8 9 |
# File 'lib/monkeypatches/rails_helper.rb', line 7 def yacht_js_snippet(opts={}) javascript_tag Yacht::Loader.to_js_snippet(opts) end |