Sha256: a250e4b2221ee0a5678b3ddb33f09920ca561dc25d8078e76095ce8f1bce7102

Contents?: true

Size: 179 Bytes

Versions: 3

Compression:

Stored size: 179 Bytes

Contents

class User < ActiveRecord::Base
  validates_presence_of :name

  def self.blocked
    where(:active_at => nil)
  end

  def block!
    update_attribute(:active_at, nil)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hermes-0.4.1 test/rails_app/app/models/user.rb
hermes-0.4.0 test/rails_app/app/models/user.rb
hermes-0.3.0 test/rails_app/app/models/user.rb