lib/deface/action_view_extensions.rb in deface-0.1.0 vs lib/deface/action_view_extensions.rb in deface-0.2.0
- old
+ new
@@ -1,10 +1,10 @@
ActionView::Template.class_eval do
alias_method :rails_initialize, :initialize
def initialize(source, identifier, handler, details)
- overrides = Deface::Override.find(details.merge({:file_path => identifier}))
+ overrides = Deface::Override.find(details)
unless overrides.empty?
doc = Deface::Parser.convert_fragment(source)
overrides.each do |override|
@@ -24,10 +24,10 @@
end
end
source = doc.to_s
- Deface::Parser.undo_erb_markup(source)
+ Deface::Parser.undo_erb_markup!(source)
end
rails_initialize(source, identifier, handler, details)
end
end