Skip to content

Commit

Permalink
Change where Notifier is looking for views since they're in app now
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Sep 17, 2011
1 parent 22525da commit ecf290e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/notifier.rb
Expand Up @@ -25,7 +25,7 @@ def self.send_confirm_email_notification(recipient, token)
# This was kinda crazy to figure out. We have to make our own instantiation
# of the Engine, and then set local variables. Crazy.
def self.render_haml_template(template, opts)
engine = Haml::Engine.new(File.open("views/notifier/#{template}.haml", "rb").read)
engine = Haml::Engine.new(File.open("app/views/notifier/#{template}.haml", "rb").read)
engine.render(Object.new, opts)
end
end

0 comments on commit ecf290e

Please sign in to comment.