core/app/finders/spree/menus/find.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
module Spree
  module Menus
    class Find < ::Spree::BaseFinder
      def execute
        return scope.where(location: params[:filter]['location']) if params[:filter].present? && params[:filter]['location'].present?

        scope
      end
    end
  end
end