Sha256: 9bc59e5aabfb68c6fc8c342b9b34171bfd859fb308203381e8522f4d06144480
Contents?: true
Size: 357 Bytes
Versions: 12
Compression:
Stored size: 357 Bytes
Contents
class Mite::Project < Mite::Base def time_entries(options = {}) TimeEntry.find(:all, :params => options.update(:project_id => id)) end def customer @customer ||= Customer.find(customer_id) unless customer_id.blank? end def customer=(customer) self.customer_id = customer ? customer.id : nil @customer = customer end end
Version data entries
12 entries across 12 versions & 4 rubygems