Class: Spree::Addresses::Find

Inherits:
BaseFinder show all
Defined in:
app/finders/spree/addresses/find.rb

Instance Attribute Summary

Attributes inherited from BaseFinder

#params, #scope

Instance Method Summary collapse

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

#executeObject



9
10
11
12
# File 'app/finders/spree/addresses/find.rb', line 9

def execute
  addresses = scope
  exclude_quick_checkout(addresses)
end