Module: Product::ProjectManagement::ClassMethods
- Defined in:
- app/models/product/project_management.rb
Instance Method Summary collapse
Instance Method Details
#stories(id, user) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/models/product/project_management.rb', line 9 def stories(id, user) collection = if id == 'no-name' Story.where(_type: 'Story') else product = Product.find(id) begin product.story_class.for_user(user) rescue NotImplementedError product.story_class end end collection.where(:users_without_tasks_ids.ne => user.id) end |