Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal-rails
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 16ed97ffae95
Choose a base ref
...
head repository: opal/opal-rails
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: aea2468f16a0
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 7, 2014

  1. Opal 0.6 is out!

    elia committed Mar 7, 2014
    Copy the full SHA
    188e2a4 View commit details
  2. Add the #opal_tag helper

    elia committed Mar 7, 2014
    Copy the full SHA
    aea2468 View commit details
Showing with 8 additions and 1 deletion.
  1. +1 −1 Gemfile
  2. +7 −0 app/helpers/opal_helper.rb
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ gemspec
gem 'capybara-webkit'
gem 'capybara', '< 2'

gem 'opal', :github => 'opal/opal'
# gem 'opal', :github => 'opal/opal'
gem 'opal-jquery', :github => 'opal/opal-jquery'

# gem 'opal', :path => '~/Code/opal'
7 changes: 7 additions & 0 deletions app/helpers/opal_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module OpalHelper
def opal_tag(&block)
opal_code = capture(&block)
js_code = Opal.compile(opal_code)
javascript_tag js_code
end
end