Sha256: 27a46c3788fe6a26f5cc0426dd955034b452cd8d30d1e7e9259f2c52fa863641

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

class User < ActiveRecord::Base
  authenticates_with_sorcery!

  has_many :articles, class_name: "Bigmouth::Article", foreign_key: "author_id"

  validates :password, length: { minimum: 3 }
  validates :password, confirmation: true
  validates :password_confirmation, presence: true

  validates :email, uniqueness: true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigmouth-0.0.1 test/dummy/app/models/user.rb