Sha256: e0cbe5af9324ae09d10d21e0d1bb8f37dd31ceb93e9c3976677591af3e0d41d8
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 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 customer_name.blank? ? name : "#{name} (#{customer_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mite-rb-0.2.2 | lib/mite/project.rb |