photomix/config/application.rb

28 lines
1 KiB
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-25 01:26:16 +04: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 02:33:03 +04:00
# config.autoload_paths += %W(#{config.root}/ Dir["#{config.root}/lib/**/"]
2011-04-11 15:54:43 +08:00
config.autoload_paths += %W(#{config.root}/lib #{config.root}/app/middleware/)
2012-07-27 00:26:23 +04: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-25 01:26:16 +04:00
config.active_support.escape_html_entities_in_json = true
config.assets.enabled = true
config.assets.version = '1.0'
2012-07-30 02:56:45 +04:00
config.assets.precompile += %w( ajaxful_rating.css )
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