Commit afcf5972d9da9560cfc08febc715d5ad399042d6

updated to rails 2.0.2

Commit diff

app/controllers/application.rb

 
66
77 # See ActionController::RequestForgeryProtection for details
88 # Uncomment the :secret if you're not using the cookie session store
9 protect_from_forgery # :secret => 'fc3d46c3fbc4bb4ff24b81d2125e1662'
9 protect_from_forgery # :secret => '5589a4aab240bd6a661794c1fbf79b73'
1010end
toggle raw diff

config/boot.rb

 
2424 File.exist?("#{RAILS_ROOT}/vendor/rails")
2525 end
2626
27 # FIXME : Ruby 1.9
2728 def preinitialize
2829 load(preinitializer_path) if File.exists?(preinitializer_path)
2930 end
9494 end
9595
9696 def parse_gem_version(text)
97 $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*'([!~<>=]*\s*[\d.]+)'/
97 $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
9898 end
9999
100100 private
toggle raw diff

config/database.yml

 
1# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
2#
3# Install the MySQL driver:
4# gem install mysql
5# On Mac OS X:
6# sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
7# On Mac OS X Leopard:
8# sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
9# This sets the ARCHFLAGS environment variable to your native architecture
10# On Windows:
11# gem install mysql
12# Choose the win32 build.
13# Install MySQL and put its /bin directory on your path.
14#
15# And be sure to use new-style password hashing:
16# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
1# SQLite version 3.x
2# gem install sqlite3-ruby (not necessary on OS X Leopard)
173development:
18 adapter: mysql
19 encoding: utf8
20 database: rails-skeleton_development
21 username: root
22 password:
23 socket: /var/run/mysqld/mysqld.sock
4 adapter: sqlite3
5 database: db/development.sqlite3
6 timeout: 5000
247
258# Warning: The database defined as 'test' will be erased and
269# re-generated from your development database when you run 'rake'.
2710# Do not set this db to the same as development or production.
2811test:
29 adapter: mysql
30 encoding: utf8
31 database: rails-skeleton_test
32 username: root
33 password:
34 socket: /var/run/mysqld/mysqld.sock
12 adapter: sqlite3
13 database: db/test.sqlite3
14 timeout: 5000
3515
3616production:
37 adapter: mysql
38 encoding: utf8
39 database: rails-skeleton_production
40 username: root
41 password:
42 socket: /var/run/mysqld/mysqld.sock
17 adapter: sqlite3
18 database: db/production.sqlite3
19 timeout: 5000
toggle raw diff

config/environment.rb

 
55# ENV['RAILS_ENV'] ||= 'production'
66
77# Specifies gem version of Rails to use when vendor/rails is not present
8RAILS_GEM_VERSION = '2.0.1' unless defined? RAILS_GEM_VERSION
8RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
99
1010# Bootstrap the Rails environment, frameworks, and default configuration
1111require File.join(File.dirname(__FILE__), 'boot')
3838 # no regular words or you'll be exposed to dictionary attacks.
3939 config.action_controller.session = {
4040 :session_key => '_rails-skeleton_session',
41 :secret => 'd621ee17b00e1f40f6e23159735767aa4b06587e6380e8d9b153ef23a281b23d93ff52a8825e0c453d753affcbe6fedb3c71244cadfca9c8a80f1820fc455592'
41 :secret => '4c57d67aebd343f26e4aa5186143c5ae44fd1b2dbec93c63c6300a66d27744d67220e68ef74a7aa261b8078eac05982dec989c6d57955c3343a0b0f89fb5d662'
4242 }
4343
4444 # Use the database for sessions instead of the cookie-based default,
toggle raw diff

config/environments/production.rb

 
1010# Full error reports are disabled and caching is turned on
1111config.action_controller.consider_all_requests_local = false
1212config.action_controller.perform_caching = true
13config.action_view.cache_template_loading = true
1314
1415# Enable serving of images, stylesheets, and javascripts from an asset server
1516# config.action_controller.asset_host = "http://assets.example.com"
toggle raw diff