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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs