Skip to content
Browse files

Rails 3.1 compat, thanks to agoragames/stache

  • Loading branch information...
1 parent c4b58e0 commit b6f7445f7062a899c39123cd4a14018be5f43b21 @defunkt committed Oct 25, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/mustache_rails.rb
View
5 lib/mustache_rails.rb
@@ -105,6 +105,11 @@ def compile(template)
MUSTACHE
end
+ # In Rails 3.1+, #call takes the place of #compile
+ def self.call(template)
+ new.compile(template)
+ end
+
private
def mustache_class_from_template(template)

0 comments on commit b6f7445

Please sign in to comment.
Something went wrong with that request. Please try again.