aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks/misc.rake
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/tasks/misc.rake')
-rw-r--r--railties/lib/tasks/misc.rake8
1 files changed, 3 insertions, 5 deletions
diff --git a/railties/lib/tasks/misc.rake b/railties/lib/tasks/misc.rake
index d145db0934..e44ab2cf17 100644
--- a/railties/lib/tasks/misc.rake
+++ b/railties/lib/tasks/misc.rake
@@ -4,9 +4,7 @@ task :environment do
end
require 'rails_generator/secret_key_generator'
-namespace :generate do
- 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.'
- task :secret do
- puts Rails::SecretKeyGenerator.new(ENV['ID']).generate_secret
- end
+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.'
+task :secret do
+ puts Rails::SecretKeyGenerator.new(ENV['ID']).generate_secret
end