Skip to content

Commit

Permalink
Update mustache_rails to user autoload_paths instead of load_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
negonicrac committed Jul 23, 2010
1 parent 715fa98 commit bceaa74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rdoc
Expand Up @@ -7,6 +7,7 @@
== Master
* optimize
* Update jquery install by removing unneeded initializer file
* Update mustache_rails to user autoload_paths instead of load_paths

== 0.10.3
* optimize
Expand Down
@@ -1,5 +1,3 @@
require 'action_view'
require 'active_support'
require 'mustache'

class Mustache
Expand Down Expand Up @@ -119,5 +117,5 @@ def mustache_template_file(template)
end
end

::ActiveSupport::Dependencies.load_paths << Rails.root.join("app", "views")
::ActiveSupport::Dependencies.autoload_paths += [Rails.root.join('app', 'views')]
::ActionView::Template.register_template_handler(:rb, Mustache::Rails::TemplateHandler)

0 comments on commit bceaa74

Please sign in to comment.