Class: Spree::Countries::Find
- Inherits:
-
Object
- Object
- Spree::Countries::Find
- Defined in:
- app/finders/spree/countries/find.rb
Instance Method Summary collapse
- #call ⇒ 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 8 |
# File 'app/finders/spree/countries/find.rb', line 4 def initialize(scope, params) @scope = scope @shippable = String(params[:filter][:shippable]) unless params[:filter].nil? end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 |
# File 'app/finders/spree/countries/find.rb', line 10 def call countries = by_shippability(scope) countries end |