diaspora/app/mailers/notification_mailers/liked.rb
Dan Hansen f859904c76 change namespace from Mail to Mailers
locally when Resque tried to constantize Jobs::Mail Object.const_get("Jobs") returned our Jobs module but when it tried to const_get("Mail") it returned the Mail gem.
added copyright
2011-10-09 22:41:01 -05:00

15 lines
No EOL
415 B
Ruby

# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
module NotificationMailers
class Liked < NotificationMailers::Base
attr_accessor :like
def set_headers(like_id)
@like = Like.find(like_id)
@headers[:subject] = I18n.t('notifier.liked.liked', :name => @sender.name)
end
end
end