diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-19 17:04:07 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-19 17:06:40 -0200 |
commit | bfdae1775a298a4240c32e87d84ea7e8c6dccb06 (patch) | |
tree | 71fe71aa5f5e5a94430023b97f16fe96e2785aa1 /railties/lib/rails | |
parent | 61f6b47204c63715b4a49f078f9d58f24f06f502 (diff) | |
download | rails-bfdae1775a298a4240c32e87d84ea7e8c6dccb06.tar.gz rails-bfdae1775a298a4240c32e87d84ea7e8c6dccb06.tar.bz2 rails-bfdae1775a298a4240c32e87d84ea7e8c6dccb06.zip |
Make possible to use symbol as the verifier name
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 795321bc20..5b20c178eb 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -181,7 +181,7 @@ module Rails # See the +ActiveSupport::MessageVerifier+ documentation for more information. def message_verifier(verifier_name) @message_verifiers[verifier_name] ||= begin - secret = key_generator.generate_key(verifier_name) + secret = key_generator.generate_key(verifier_name.to_s) ActiveSupport::MessageVerifier.new(secret) end end |