AutoCommit Don Aug 27 16:03:04 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-27 16:03:04 +02:00
parent 7c2f1f9753
commit 8e1e19d3ab
6 changed files with 25 additions and 7 deletions

View File

@@ -1,7 +1,18 @@
class EmailsController < ApplicationController
load_and_authorize_resource
before_filter :authorize
def index
end
def daily_reminder
@mail =NewsMailer.daily_reminder(current_user.id)
if params[:send]
@mail.deliver
end
render layout: false
end
protected
def authorize
authorize! :emails,User
end
end