Sha256: ed8d19debe5d0d0b641cf792827d501c9379a170090acf5a4b82194641655067
Contents?: true
Size: 442 Bytes
Versions: 3
Compression:
Stored size: 442 Bytes
Contents
class User < ActiveRecord::Base has_one :note has_many :tasks has_many :projects has_many :locations default_fxml_methods :full_name, :has_nothing_to_do default_fxml_includes :tasks, :projects validates_length_of :login, :maximum => 10 def full_name "#{first_name} #{last_name}" end def has_nothing_to_do tasks.all? {|task| task.completed} end def email_host email.split('@').last end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruboss4ruby-1.0.5 | test/models/user.rb |
ruboss4ruby-1.0.4 | test/models/user.rb |
ruboss4ruby-1.0.3 | test/models/user.rb |