Class: Mite::Project
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- Mite::Project
show all
- Defined in:
- lib/mite/project.rb
Instance Method Summary
collapse
Methods inherited from Base
all, first, inherited, last, undo_destroy, #undo_destroy
Instance Method Details
#customer ⇒ Object
7
8
9
|
# File 'lib/mite/project.rb', line 7
def customer
@customer ||= Customer.find(customer_id) unless customer_id.blank?
end
|
#customer=(customer) ⇒ Object
11
12
13
14
|
# File 'lib/mite/project.rb', line 11
def customer=(customer)
self.customer_id = customer ? customer.id : nil
@customer = customer
end
|
#time_entries(options = {}) ⇒ Object
3
4
5
|
# File 'lib/mite/project.rb', line 3
def time_entries(options = {})
TimeEntry.find(:all, :params => options.update(:project_id => id))
end
|