photomix/config/application.rb

28 lines
1011 B
Ruby
Raw Normal View History

2010-09-17 17:57:33 +02:00
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# 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)
2012-07-24 23:26:16 +02:00
module Photomix
2010-09-17 17:57:33 +02:00
class Application < Rails::Application
# Custom directories with classes and modules you want to be autoloadable.
2012-07-29 00:33:03 +02:00
# config.autoload_paths += %W(#{config.root}/ Dir["#{config.root}/lib/**/"]
2011-04-11 09:54:43 +02:00
config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/middleware/)
2012-07-26 22:26:23 +02:00
config.active_record.observers = :secret_link_observer
2010-09-17 17:57:33 +02:00
config.encoding = "utf-8"
config.i18n.default_locale = :ru
config.time_zone = 'Moscow'
2012-07-24 23:26:16 +02:00
config.active_support.escape_html_entities_in_json = true
config.assets.enabled = true
config.assets.version = '1.0'
2010-09-17 17:57:33 +02:00
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password, :password_confirmation]
end
end