Class: Spree::Stock::LocationFilter::Active

Inherits:
Base
  • Object
show all
Defined in:
app/models/spree/stock/location_filter/active.rb

Overview

This stock location filter return all active stock locations

Instance Attribute Summary

Attributes inherited from Base

#order, #stock_locations

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Spree::Stock::LocationFilter::Base

Instance Method Details

#filterObject



8
9
10
# File 'app/models/spree/stock/location_filter/active.rb', line 8

def filter
  stock_locations.active
end