Class: Item
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Item
- Defined in:
- app/models/item.rb
Direct Known Subclasses
Defined Under Namespace
Modules: EmployeeMethods
Instance Method Summary collapse
Instance Method Details
#assign_with_id!(assignee_id) ⇒ Object
32 33 34 35 36 37 |
# File 'app/models/item.rb', line 32 def assign_with_id!(assignee_id) if assignee_id && self.assign! self.assignee_id = assignee_id self.save # two saves? end end |
#employee ⇒ Object
5 6 7 |
# File 'app/models/item.rb', line 5 def employee Employee.unscoped { super } end |