Sha256: 9a9ad22d6cb29edfcc4fd1d3fd13ffa5b0da13f20ad85910a3b052c105ed9f83
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
require 'entrance/controller' require 'entrance/model' require 'entrance/ciphers' require 'entrance/config' require 'active_support/core_ext/numeric/time' module Entrance def self.config @config ||= Config.new end def self.configure yield config config.validate! end def self.model @model ||= config.model.constantize end def self.generate_token(length = 40) SecureRandom.hex(length/2).encode('UTF-8') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
entrance-0.2.0 | lib/entrance.rb |