class Contact
Public Instance Methods
name()
click to toggle source
# File lib/generators/fullstack/contacts/templates/app/models/contact.rb, line 14 def name [first_name, second_name].compact.join(" ") end
read!()
click to toggle source
# File lib/generators/fullstack/contacts/templates/app/models/contact.rb, line 35 def read! unless read? update_attributes!(:read => true) end end
unread!()
click to toggle source
# File lib/generators/fullstack/contacts/templates/app/models/contact.rb, line 41 def unread! unless unread? update_attributes!(:read => false) end end
unread?()
click to toggle source
# File lib/generators/fullstack/contacts/templates/app/models/contact.rb, line 18 def unread? !read? end