method
options_for_javascript
options_for_javascript(options)
protected
Hide source
# File actionpack/lib/action_view/helpers/javascript_helper.rb, line 191 def options_for_javascript(options) if options.empty? '{}' else "{#{options.keys.map { |k| "#{k}:#{options[k]}" }.sort.join(', ')}}" end end