Sha256: 58a4ac31dd0570905dee8f3d33ec5517ae4fdfe4cd3668ab12b21f9b22872fd5
Contents?: true
Size: 218 Bytes
Versions: 29
Compression:
Stored size: 218 Bytes
Contents
class Admin < ActiveRecord::Base has_secure_password validates :email, presence: true, format: {with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i} validates :password_confirmation, presence: {on: :create} end
Version data entries
29 entries across 29 versions & 1 rubygems