Skip to content

Commit

Permalink
#35 close exception notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Özgür ÖZKAN committed Jun 12, 2013
1 parent 20a81d4 commit 7cf2df8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def convert_application_css_to_sass
def configure_smtp

config = <<-RUBY
config.action_mailer.delivery_method = :smtp
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => 'smtp.mandrillapp.com',
:port => 587,
Expand All @@ -116,7 +116,7 @@ def configure_smtp
# Interval: Setup exception_notification
def set_exception_notification
config = <<-RUBY
config.middleware.use ExceptionNotifier,
config.middleware.use ExceptionNotifier,
:email_prefix => "[#{app_name}] ",
:sender_address => %{"notifier" <no-reply@#{app_name}.com>},
:exception_recipients => %w{[email protected]} #TODO change this with original
Expand Down
1 change: 1 addition & 0 deletions lib/cybele/generators/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def configure_mail_setting
say 'Setup mail settings'
build :configure_action_mailer
build :configure_smtp
#build :set_exception_notification
build :setup_letter_opener
end

Expand Down
2 changes: 1 addition & 1 deletion templates/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
end
end
2 changes: 1 addition & 1 deletion templates/cybele_Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem 'haml', '~> 4.0.2'
gem 'haml-rails', '~> 0.4'
gem 'bootstrap-sass', '~> 2.3.1.0'
gem 'responders'
gem 'exception_notification'
#gem 'exception_notification'
gem "simple_form", "~> 3.0.0.rc"

group :doc do
Expand Down

0 comments on commit 7cf2df8

Please sign in to comment.