opal-rails
opal-rails copied to clipboard
opal_tag should mirror the javascript_tag api
Currently it's not possible to pass html_options to the javascript_tag.
So the following is not possible
opal_tag nonce: true do
# some javascript
end
This PR fixes that and provides an identical api to javascript_tag so it behaves as you would think it would