Sha256: 7ee40ef6bfbfa160ecce01408756ba67aacc7523015549af5b83a026bb8edd7b
Contents?: true
Size: 415 Bytes
Versions: 1
Compression:
Stored size: 415 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 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.1 | lib/mite/project.rb |