lib/motorhead/action_view.rb in motorhead-0.4.1 vs lib/motorhead/action_view.rb in motorhead-0.5.0
- old
+ new
@@ -1,4 +1,5 @@
+# frozen_string_literal: true
ActionView::Base.class_eval do
#FIXME FIXHAML AMCing here because prepending on `render` causes infinite loop when Haml is bundled
def render_with_motorhead(options = {}, locals = {}, &block)
if (Hash === options) && options.key?(:engine)
ext_name = options[:engine][/[^\/]*/]