app/models/c80_estate/area.rb in c80_estate-0.1.0.22 vs app/models/c80_estate/area.rb in c80_estate-0.1.0.23

- old
+ new

@@ -227,9 +227,17 @@ res = astatuses.first.tag end res end + def is_free? + astatus_tag == 'free' + end + + def is_busy? + astatus_tag == 'busy' + end + def assigned_person_title res = "-" if assigned_person.present? res = assigned_person.email end \ No newline at end of file