Sha256: 941c7b440ddb3399201789f66fe57b78c8bcc92cb886dd73d2340419774e6c91

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

class User < ActiveRecord::Base
  include Kublog::Notifiable
  include Kublog::Author
  
  has_secure_password
  validates_presence_of :email
  validates_presence_of :password
  
  def to_s
    name.titleize
  end
  
  def notify_post?(post)
    true
  end
  
  def admin?
    self.admin
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kublog-0.9.0 spec/dummy/app/models/user.rb