Skip to content

Commit 4058311

Browse files
committed
MailerController disabled & not in prod by def.
1 parent 695aae0 commit 4058311

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed
+14-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# TODO Implement AdminController
2-
class Admin::MailerController < ApplicationController
3-
def show
4-
end
5-
6-
def create
7-
users = User.with_email_in_exercise_groups
8-
9-
users.each do |u|
10-
UserMailer.deliver_notify(u, params[:subject], params[:body])
11-
end
12-
13-
render :text => "Success!"
14-
end
15-
end
2+
#class Admin::MailerController < ApplicationController
3+
# def show
4+
# end
5+
#
6+
# def create
7+
# users = User.with_email_in_exercise_groups
8+
#
9+
# users.each do |u|
10+
# UserMailer.deliver_notify(u, params[:subject], params[:body])
11+
# end
12+
#
13+
# render :text => "Success!"
14+
# end
15+
#end

config/environment.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Uncomment below to force Rails into production mode when
44
# you don't control web/app server and can't set it the proper way
5-
ENV['RAILS_ENV'] ||= 'production'
5+
#ENV['RAILS_ENV'] ||= 'production'
66

77
# Specifies gem version of Rails to use when vendor/rails is not present
88
RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION

0 commit comments

Comments
 (0)