Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use HandelbarsAssets.path to load handlebars.js

  • Loading branch information...
commit 519384f7a18b3576faeb56cfb6c6d1330deaeaa7 1 parent eb60ae8
@leshill authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 lib/handlebars_assets/handlebars.rb
  2. +1 −0  test/test_helper.rb
View
4 lib/handlebars_assets/handlebars.rb
@@ -20,11 +20,11 @@ def source
end
def path
- @path ||= assets_path.join('javascripts', 'handlebars.js')
+ @path ||= assets_path.join('handlebars.js')
end
def assets_path
- @assets_path ||= Pathname(__FILE__).dirname.join('..','..','vendor','assets')
+ @assets_path ||= Pathname(HandlebarsAssets.path)
end
end
end
View
1  test/test_helper.rb
@@ -1,3 +1,4 @@
+require 'handlebars_assets'
require 'handlebars_assets/tilt_handlebars'
require 'handlebars_assets/handlebars'
Please sign in to comment.
Something went wrong with that request. Please try again.