Skip to content

Commit

Permalink
Rails 3.1 compat, thanks to agoragames/stache
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Oct 25, 2011
1 parent c4b58e0 commit b6f7445
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/mustache_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6f7445

Please sign in to comment.