Module: ModelExtensions::Plate::NamedScopeHelpers
- Defined in:
- app/api/model_extensions/plate.rb
Instance Method Summary collapse
Instance Method Details
#include_plate_named_scope(plate_association) ⇒ Object
6 7 8 9 |
# File 'app/api/model_extensions/plate.rb', line 6 def include_plate_named_scope(plate_association) scope :"include_#{plate_association}", lambda { includes(plate_association.to_sym => ::ModelExtensions::Plate::PLATE_INCLUDES) } end |