@AstonJ But it's vanilla Ruby. It's not like you have ActiveSupport available, which somewhat defeats it for me.
Add this line to your application's Gemfile:
gem 'opal-activesupport'
And then execute:
$ bundle
Or install it yourself as:
$ gem install opal-activesupport
Inside your application.js.rb
:
require 'active_support' # to require the whole active support lib
require 'active_support/core_ext' # require only the corelib extensions
require 'active_support/core_ext/string' # require only the corelib extensions
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request