Guest User

Untitled

a guest
Jan 23rd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. require File.expand_path('../boot', __FILE__)
  2. require 'rails/all'
  3.  
  4. # Pick the frameworks you want:
  5. require "active_record/railtie"
  6. require "action_controller/railtie"
  7. require "action_mailer/railtie"
  8. require "active_resource/railtie"
  9. # require "rails/test_unit/railtie"
  10.  
  11. # If you have a Gemfile, require the gems listed there, including any gems
  12. # you've limited to :test, :development, or :production.
  13. Bundler.require(:default, Rails.env) if defined?(Bundler)
  14.  
  15. module Bumble
  16. class Application < Rails::Application
  17. # Configure the default encoding used in templates for Ruby 1.9.
  18. config.encoding = "utf-8"
  19.  
  20. # Configure sensitive parameters which will be filtered from the log file.
  21. config.filter_parameters += [:password]
  22.  
  23. # Add this for Spork
  24. if Rails.env.test?
  25. initializer :after => :initialize_dependency_mechanism do
  26. ActiveSupport::Dependencies.mechanism = :load
  27. end
  28. end
  29.  
  30. # Settings in config/environments/* take precedence over those specified here.
  31. # Application configuration should go into files in config/initializers
  32. # -- all .rb files in that directory are automatically loaded.
  33.  
  34. # Custom directories with classes and modules you want to be autoloadable.
  35. # config.autoload_paths += %W(#{config.root}/extras)
  36.  
  37. # Only load the plugins named here, in the order given (default is alphabetical).
  38. # :all can be used as a placeholder for all plugins not explicitly named.
  39. # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
  40.  
  41. # Activate observers that should always be running.
  42. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
  43.  
  44. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  45. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
  46. # config.time_zone = 'Central Time (US & Canada)'
  47.  
  48. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  49. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
  50. # config.i18n.default_locale = :de
  51.  
  52. # JavaScript files you want as :defaults (application.js is always included).
  53. # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
  54. end
  55. end
Add Comment
Please, Sign In to add comment