Sha256: f68721c1d4e4f4047f1d085b47ba406e5104746ebfa65e2423f522f36fa6e452

Contents?: true

Size: 221 Bytes

Versions: 3

Compression:

Stored size: 221 Bytes

Contents

class User < ActiveRecord::Base
  serialize :dismissed_blocks, Array

  validates :username, uniqueness: true

  def self.authenticate(username, password)
    User.find_by username: username, password: password
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dismissible_blocks-1.1.1 test/dummy/app/models/user.rb
dismissible_blocks-1.1.0 test/dummy/app/models/user.rb
dismissible_blocks-0.0.2 test/dummy/app/models/user.rb