Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. MyApp::Application.configure do
  2. # Settings specified here will take precedence over those in config/application.rb.
  3.  
  4. # In the development environment your application's code is reloaded on
  5. # every request. This slows down response time but is perfect for development
  6. # since you don't have to restart the web server when you make code changes.
  7. config.cache_classes = false
  8.  
  9. # Do not eager load code on boot.
  10. config.eager_load = false
  11.  
  12. # Show full error reports and disable caching.
  13. config.consider_all_requests_local = true
  14. config.action_controller.perform_caching = false
  15.  
  16. # Don't care if the mailer can't send.
  17. config.action_mailer.raise_delivery_errors = true
  18. config.action_mailer.delivery_method = :smtp
  19. # Specify what domain to use for mailer URLs
  20. config.action_mailer.default_url_options = {host: "localhost:3000"}
  21. config.action_mailer.smtp_settings = {
  22. :address => 'smtp.gmail.com',
  23. :port => 587,
  24. :domain => 'gmail.com',
  25. :user_name => Rails.application.secrets.email['user'],
  26. :password => Rails.application.secrets.email['pass'],
  27. :authentication => 'login',
  28. :enable_starttls_auto => true
  29. }
  30.  
  31. # Print deprecation notices to the Rails logger.
  32. config.active_support.deprecation = :log
  33.  
  34. # Raise an error on page load if there are pending migrations
  35. config.active_record.migration_error = :page_load
  36.  
  37. # Debug mode disables concatenation and preprocessing of assets.
  38. # This option may cause significant delays in view rendering with a large
  39. # number of complex assets.
  40. config.assets.debug = true
  41.  
  42. config.after_initialize do
  43. Bullet.enable = true
  44. Bullet.alert = true
  45. Bullet.bullet_logger = true
  46. Bullet.console = true
  47. # Bullet.growl = true
  48. Bullet.rails_logger = true
  49. Bullet.add_footer = true
  50. end
  51.  
  52. config.middleware.use ExceptionNotification::Rack,
  53. :ignore_if => lambda { |env, exception| !env[:rake?] },
  54. :email => {
  55. :sender_address => %{"notifier" myemail@gmail.com},
  56. :exception_recipients => %w(myemail@gmail.com)
  57. }
  58. ExceptionNotifier::Rake.configure
  59. end
  60.  
  61. /development.rb:52:in `
  62. block in <top (required)>': uninitialized constant ExceptionNotification (NameError)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement