diff --git a/lib/cybele/app_builder.rb b/lib/cybele/app_builder.rb index dfed732..57a04ed 100644 --- a/lib/cybele/app_builder.rb +++ b/lib/cybele/app_builder.rb @@ -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, @@ -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" }, :exception_recipients => %w{info@lab2023.com} #TODO change this with original diff --git a/lib/cybele/generators/app_generator.rb b/lib/cybele/generators/app_generator.rb index e6df130..1bb6f03 100644 --- a/lib/cybele/generators/app_generator.rb +++ b/lib/cybele/generators/app_generator.rb @@ -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 diff --git a/templates/app/controllers/application_controller.rb b/templates/app/controllers/application_controller.rb index 717eee5..e218531 100644 --- a/templates/app/controllers/application_controller.rb +++ b/templates/app/controllers/application_controller.rb @@ -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 \ No newline at end of file diff --git a/templates/cybele_Gemfile b/templates/cybele_Gemfile index 0b11956..7811942 100644 --- a/templates/cybele_Gemfile +++ b/templates/cybele_Gemfile @@ -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