Module: ModelExtensions::AssetGroup
- Included in:
- AssetGroup
- Defined in:
- app/api/model_extensions/asset_group.rb
Overview
Note:
This could easily be in-lined in asset group itself
Included in AssetGroup to provide scopes used by the V1 API
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 |
# File 'app/api/model_extensions/asset_group.rb', line 5 def self.included(base) base.class_eval do scope :include_study, -> { includes(:study) } scope :include_assets, -> { includes(:assets) } end end |