Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bugfix for JS file inclusion

  • Loading branch information...
commit 07a1938c652a95eaa9514e804af4a03af28ca974 1 parent 2c9788d
@sinisterchipmunk authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/webgl/railtie.rb
  2. +1 −1  spec/views/webgl_inclusion_spec.rb
View
2  lib/webgl/railtie.rb
@@ -13,7 +13,7 @@ class Railtie < Rails::Railtie
end
config.before_configuration do
- config.action_view.javascript_expansions[:webgl] = Dir[File.join("javascripts/**/*.js")]
+ config.action_view.javascript_expansions[:webgl] = Dir[File.join(WebGL.public_path, "javascripts/**/*.js")].collect { |d| File.join("", d.gsub(Regexp::escape(WebGL.public_path), "")) }
end
# generators do
View
2  spec/views/webgl_inclusion_spec.rb
@@ -15,7 +15,7 @@
describe "webgl_tests/webgl_inclusion.html.erb" do
def src_for(str)
- File.expand_path(File.join(File.dirname(__FILE__), '../../public/javascripts', str))
+ File.expand_path(File.join('/javascripts', str))
end
it "includes all WebGL javascripts" do
Please sign in to comment.
Something went wrong with that request. Please try again.