Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
447 B

class AllLog < ApplicationRecord
self.table_name = :logs
STATUS = { "not_started" => 0, "in_progress" => 1, "completed" => 2 }.freeze
enum status: STATUS
def read_only?
true
end
def tenancycode?
log_type == "lettings"
end
def needstype?
log_type == "lettings"
end
def startdate?
false
end
def is_general_needs?
log_type == "lettings"
end
def created_by
User.find(created_by_id)
end
end