class ApplicationController < ActionController::Base
helper_method :mail2admin
def mail2admin(message)
Mailer.deliver_mail2admin(message))
end
end
How do I access the method mail2admin inside my rake task.
class ApplicationController < ActionController::Base
helper_method :mail2admin
def mail2admin(message)
Mailer.deliver_mail2admin(message))
end
end
How do I access the method mail2admin inside my rake task.