af83/chouette-core

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

Summary

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

    attr_accessor :line_referential

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

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