static private Method

SecretKeyGenerator.supports_secure_random?

There's no documentation for this item.

Source Code

# File rails_generator/secret_key_generator.rb, line 124
def self.supports_secure_random?
  begin
    require 'securerandom'
    true
  rescue LoadError
    false
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.