af83/chouette-core

View on GitHub
app/lib/search/stop_area_provider.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Search
  class StopAreaProvider < Base
    # All search attributes
    attribute :text

    def query(scope)
          Query::StopAreaProvider.new(scope)
              .text(text)
    end

      private

    class Order < ::Search::Order
      attribute :name, default: :asc
    end
  end
end