lib/alephant/views/base.rb in alephant-renderer-0.0.8 vs lib/alephant/views/base.rb in alephant-renderer-0.0.9

- old
+ new

@@ -16,10 +16,10 @@ :en end def t(key, params = {}) I18n.locale = locale - prefix = /\/([^\/]+)\./.match(template_file)[1] + prefix = /\/([^\/]+)\.mustache/.match(template_file)[1] I18n.translate("#{prefix}.#{key}", params) end def self.inherited(subclass) ::Alephant::Views.register(subclass)