Module: StonePath::WorkOwner
- Defined in:
- lib/stonepath/work_owner.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/stonepath/work_owner.rb', line 10 def self.included(base) base.instance_eval do def workowner_for(work_items, ={}) .merge!(:foreign_key => :owner_id) has_many work_items, end end end |