Guest User

Untitled

a guest
Mar 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. require File.expand_path('../boot', __FILE__)
  2.  
  3. module Core
  4. class Application < Rails::Application
  5. # Settings in config/environments/* take precedence over those specified here.
  6. # Application configuration should go into files in config/initializers
  7. # -- all .rb files in that directory are automatically loaded.
  8.  
  9. # Add additional load paths for your own custom dirs
  10. # config.load_paths += %W( #{root}/extras )
  11.  
  12. # Only load the plugins named here, in the order given (default is alphabetical).
  13. # :all can be used as a placeholder for all plugins not explicitly named
  14. # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
  15.  
  16. # Activate observers that should always be running
  17. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
  18.  
  19. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  20. # Run "rake -D time" for a list of tasks for finding time zone names.
  21. config.time_zone = 'UTC'
  22. puts Rails.root
  23. puts root
  24. config.load_paths += [ 'app/sweepers/',
  25. 'app/observers/']
  26.  
  27. puts config.load_paths
  28. config.active_record.observers = :user_observer
  29.  
  30. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  31. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
  32. # config.i18n.default_locale = :de
  33.  
  34. # Configure generators values. Many other options are available, be sure to
  35. # check the documentation.
  36. # config.generators do |g|
  37. # g.orm :active_record
  38. # g.template_engine :erb
  39. # g.test_framework :test_unit, :fixture => true
  40. # end
  41. end
  42. end
Add Comment
Please, Sign In to add comment