Class: Pushkin::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable
Defined in:
lib/pushkin/configuration.rb

Class Method Summary collapse

Class Method Details

.generate_tokenObject



10
11
12
# File 'lib/pushkin/configuration.rb', line 10

def self.generate_token
  defined?(SecureRandom) ? SecureRandom.hex(32) : ActiveSupport::SecureRandom.hex(32)
end