Class: Spree::Addresses::Find
- Inherits:
-
BaseFinder
- Object
- BaseFinder
- Spree::Addresses::Find
- Defined in:
- app/finders/spree/addresses/find.rb
Instance Attribute Summary
Attributes inherited from BaseFinder
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(scope:, params:) ⇒ Find
constructor
A new instance of Find.
Constructor Details
#initialize(scope:, params:) ⇒ Find
Returns a new instance of Find.
4 5 6 7 |
# File 'app/finders/spree/addresses/find.rb', line 4 def initialize(scope:, params:) super @exclude_quick_checkout = params.dig(:filter, :exclude_quick_checkout) end |
Instance Method Details
#execute ⇒ Object
9 10 11 12 |
# File 'app/finders/spree/addresses/find.rb', line 9 def execute addresses = scope exclude_quick_checkout(addresses) end |