Sha256: 8c5e31487b263b07bf38b9b896948141f10690b02eeaceee7e9725c92aae5c17
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
require 'active_support/concern' module ThecoreBackendCommonsUser extend ActiveSupport::Concern included do devise :rememberable devise :timeoutable, timeout_in: 30.minutes validates :username, uniqueness: { case_sensitive: false }, presence: true, length: { in: 4..15 } validates_format_of :username, with: /\A[a-zA-Z0-9]*\z/, on: :create, message: "can only contain letters and digits" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thecore_backend_commons-2.2.5 | lib/concerns/thecore_backend_commons_user.rb |