Class/Module Index [+]

Quicksearch

EmailsController

Public Instance Methods

daily_reminder() click to toggle source
# File app/controllers/emails_controller.rb, line 7
  def daily_reminder
    ActionMailer::Base.default_url_options[:host] = request.host_with_port 
    @mail =NewsMailer.daily_reminder(current_user.id)
    if params[:send]
      usr=User.where(:flag_getemails => true)
      usr.each do |u|
        NewsMailer.daily_reminder(current_user.id).deliver
      end
    end
    render layout: false
end
index() click to toggle source
# File app/controllers/emails_controller.rb, line 4
def index
  
end

Protected Instance Methods

authorize() click to toggle source
# File app/controllers/emails_controller.rb, line 19
def authorize
  authorize! :emails, User
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.