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: 9d486e7511a6
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: 54b2625e911f
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Feb 21, 2015

  1. Use underscore for generated asset file name

    makes `rails g controller Foo::Bars` generate
    `app/assets/javascripts/foo/bars_view.js.rb` instead of
    `app/assets/javascripts/foo/Foo::Bars_view.js.rb`
    cantonic committed Feb 21, 2015
    Copy the full SHA
    5a910ea View commit details
  2. Merge pull request #34 from cantonic/master

    Use underscore for generated asset file name
    elia committed Feb 21, 2015

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    54b2625 View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails/generators/opal/assets/assets_generator.rb
2 changes: 1 addition & 1 deletion lib/rails/generators/opal/assets/assets_generator.rb
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ def initialize(*args)
end

def copy_opal
template 'javascript.js.rb', File.join('app/assets/javascripts', class_path, "#{controller_name}_view.js.rb")
template 'javascript.js.rb', File.join('app/assets/javascripts', "#{controller_name.underscore}_view.js.rb")
end
end
end