Sha256: d26044a8fa7c6f8266016b843d3e7e7d6ede39c6c4f536647437b63a36ded543

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 Bytes

Contents

class <%= class_name %>Query
  include Querifier::Queries::Default

  # If no order param is provided, then this order will be used
  # default_sort { id: :asc }
  # Configure these constants to add attributes to the ordering a filtering
  where_attributes :id
  order_attributes :id
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
querifier-0.2.3 lib/generators/querifier/templates/query.rb.erb
querifier-0.2.2 lib/generators/querifier/templates/query.rb.erb
querifier-0.1.1 lib/generators/querifier/templates/query.rb.erb
querifier-0.1.0 lib/generators/querifier/templates/query.rb.erb