Sha256: fb39756e254dedf4640ddd84d93a5964f2d97d34d00d99f82f3d1ca8efd8d17b
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 Bytes
Contents
class Mite::Project < Mite::Base 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mite-rb-0.2.0 | lib/mite/project.rb |
mite-rb-0.1.0 | lib/mite/project.rb |