Upgrade to Rails 2.2.0
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
This commit is contained in:
parent
39348c65c2
commit
7600aef48b
827 changed files with 123652 additions and 11027 deletions
7
vendor/rails/railties/lib/tasks/misc.rake
vendored
7
vendor/rails/railties/lib/tasks/misc.rake
vendored
|
@ -3,10 +3,9 @@ task :environment do
|
|||
require(File.join(RAILS_ROOT, 'config', 'environment'))
|
||||
end
|
||||
|
||||
require 'rails_generator/secret_key_generator'
|
||||
desc 'Generate a crytographically secure secret key. This is typically used to generate a secret for cookie sessions. Pass a unique identifier to the generator using ID="some unique identifier" for greater security.'
|
||||
desc 'Generate a crytographically secure secret key. This is typically used to generate a secret for cookie sessions.'
|
||||
task :secret do
|
||||
puts Rails::SecretKeyGenerator.new(ENV['ID']).generate_secret
|
||||
puts ActiveSupport::SecureRandom.hex(64)
|
||||
end
|
||||
|
||||
require 'active_support'
|
||||
|
@ -54,4 +53,4 @@ namespace :time do
|
|||
puts "\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue