lib/mbrao/integrations/rails.rb in mbrao-1.2.1 vs lib/mbrao/integrations/rails.rb in mbrao-1.2.2

- old
+ new

@@ -1,8 +1,8 @@ # encoding: utf-8 # -# This file is part of the mbrao gem. Copyright (C) 2013 and above Shogun <shogun_panda@cowtech.it>. +# This file is part of the mbrao gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>. # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php. # # Generic interface to multiple Ruby template engines. module ActionView::Template::Handlers @@ -46,6 +46,6 @@ "ActionView::Template::Handlers::MbraoTemplate.instance.render(self, #{template.source.to_json})" end end end -ActionView::Template.register_template_handler "emt", ActionView::Template::Handlers::MbraoTemplate.instance if defined?(ActionView) && defined?(Rails) && Rails.version =~ /^[34]/ +ActionView::Template.register_template_handler("emt", ActionView::Template::Handlers::MbraoTemplate.instance) if defined?(ActionView) && defined?(Rails) && Rails.version =~ /^[34]/ \ No newline at end of file