Module: Herbert::Utils::Helpers

Defined in:
lib/herbert/Utils.rb

Instance Method Summary collapse

Instance Method Details

#nonce(length = 8) ⇒ Object



15
16
17
# File 'lib/herbert/Utils.rb', line 15

def nonce(length = 8)
  ActiveSupport::SecureRandom.hex(length)
end

#versionObject



11
12
13
# File 'lib/herbert/Utils.rb', line 11

def version
  Utils.version
end