lib/mite/project.rb in mite-rb-0.2.1 vs lib/mite/project.rb in mite-rb-0.2.2

- old
+ new

@@ -3,10 +3,14 @@ include Mite::ResourceWithActiveArchived def time_entries(options = {}) Mite::TimeEntry.find(:all, :params => options.update(:project_id => id)) end - + + def name_with_customer + customer_name.blank? ? name : "#{name} (#{customer_name})" + end + def customer @customer ||= Mite::Customer.find(customer_id) unless customer_id.blank? end def customer=(customer) \ No newline at end of file