lib/mite/project.rb in mite-rb-0.4.4 vs lib/mite/project.rb in mite-rb-0.4.5
- old
+ new
@@ -1,22 +1,22 @@
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
\ No newline at end of file