Sha256: 9cb9de56bfdcf4055e26f9497cab0867678cc65a00734ad828f4c14a79d673d3
Contents?: true
Size: 586 Bytes
Versions: 10
Compression:
Stored size: 586 Bytes
Contents
class <%= class_name %> < ActiveRecord::Base authenticates_with_sorcery! validates :email, presence: true, uniqueness: true validates :password, presence: true, on: :create validates :password, length: { minimum: 6 }, unless: Proc.new { |a| a.password.blank? } validates :password, confirmation: true validates :password_confirmation, presence: true, on: :create <%- if has_picture? -%> mount_uploader :picture, PictureUploader <%- end -%> enum status: <%= BootswatchRails::USER_STATUS %> validates :status, presence: true enum theme: BootswatchRails::THEMES end
Version data entries
10 entries across 10 versions & 1 rubygems