Sha256: b623b9d18b28c31b18273d979ab21b6a162e73ebe5d4c91d51b646fa19303288
Contents?: true
Size: 674 Bytes
Versions: 2
Compression:
Stored size: 674 Bytes
Contents
# == Schema Information # # Table name: lentil_users # # id :integer not null, primary key # user_name :string(255) # full_name :string(255) # banned :boolean # created_at :datetime not null # updated_at :datetime not null # service_id :integer # bio :text # images_count :integer default(0) # class Lentil::User < ActiveRecord::Base attr_accessible :banned, :full_name, :user_name, :bio stores_emoji_characters :full_name, :bio has_many :images belongs_to :service validates_uniqueness_of :user_name, :scope => :service_id def number_of_images self.images.count end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lentil-0.9.1 | app/models/lentil/user.rb |
lentil-0.9.0 | app/models/lentil/user.rb |