forked from nakajima/aintablog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.rb
34 lines (25 loc) · 1.04 KB
/
environment.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
# Be sure to restart your server when you modify this file
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.0' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
require 'authenticated_model'
Rails::Initializer.run do |config|
config.load_paths += %W[
#{RAILS_ROOT}/app/models/posts
#{RAILS_ROOT}/app/models/feeds
]
config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/public/cache"
config.action_controller.session_store = :cookie_store
config.action_controller.session = {
:session_key => "_myapp_session",
:secret => (s = ""; 31.times { s << rand(10).to_s }; s)
}
# These gems are totally required
config.gem 'feed-normalizer'
config.gem 'RedCloth'
config.gem 'nokogiri'
end