/
application.rb
36 lines (27 loc) · 1.08 KB
/
application.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require File.expand_path("../boot", __FILE__)
require "action_controller/railtie"
require "action_mailer/railtie"
require "sprockets/railtie"
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
module Echo
class Application < Rails::Application
# Enable the asset pipeline.
config.assets.enabled = true
# Add additional load paths for your own custom dirs.
config.autoload_paths += %W(#{config.root}/app/services)
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
config.generators do |g|
g.fixture_replacement :fabrication
g.orm :mongoid
g.test_framework :rspec
g.template_engine :haml
end
# Setup the Mongoid observers here.
config.mongoid.observers = :band_observer, :following_observer, :role_observer
end
end