Sha256: fc08fb5133a8c6ded315b5b9fc09a1afdac499fb806b0b567e7fc71a4651d6f0
Contents?: true
Size: 534 Bytes
Versions: 6
Compression:
Stored size: 534 Bytes
Contents
class Mite::Project < Mite::Base include Mite::ResourceWithActiveArchived def time_entries(options = {}) Mite::TimeEntry.find(:all, :params => options.update(:project_id => id)) end def name_with_customer respond_to?(:customer_name) && !customer_name.blank? ? "#{name} (#{customer_name})" : name end def customer @customer ||= Mite::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
6 entries across 6 versions & 1 rubygems