Skip to content
Browse files

Formally deprecate the old secret key generator

  • Loading branch information...
1 parent b3411ff commit b7cd4ded9350fff5edee2298dc04a55e6b285233 @NZKoz NZKoz committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/rails_generator/secret_key_generator.rb
View
1 railties/lib/rails_generator/secret_key_generator.rb
@@ -17,5 +17,6 @@ def initialize(identifier)
def generate_secret
ActiveSupport::SecureRandom.hex(64)
end
+ deprecate :generate_secret=>"You should use ActiveSupport::SecureRandom.hex(64)"
end
end

0 comments on commit b7cd4de

Please sign in to comment.
Something went wrong with that request. Please try again.