Sha256: c214ef6e55eb64e556f9a66ff9d4be0b31e6dada58db31eee8daa5770c54ec3b

Contents?: true

Size: 253 Bytes

Versions: 154

Compression:

Stored size: 253 Bytes

Contents

class <%= resource_class %> < Avo::BaseResource
  self.title = :id
  self.includes = []
  # self.search_query = ->(params:) do
  #   scope.ransack(id_eq: params[:q], m: "or").result(distinct: false)
  # end

  field :id, as: :id
  # add fields here
end

Version data entries

154 entries across 154 versions & 1 rubygems

Version Path
avo-2.13.2.pre.2 lib/generators/avo/templates/resource/resource.tt
avo-2.13.2.pre.1 lib/generators/avo/templates/resource/resource.tt
avo-2.12.1.pre.1 lib/generators/avo/templates/resource/resource.tt
avo-2.12.0 lib/generators/avo/templates/resource/resource.tt
avo-2.11.3.pre.3 lib/generators/avo/templates/resource/resource.tt
avo-2.11.3.pre.2 lib/generators/avo/templates/resource/resource.tt
avo-2.11.3.pre.1 lib/generators/avo/templates/resource/resource.tt
avo-2.11.2.pre.3 lib/generators/avo/templates/resource/resource.tt
avo-2.11.2.pre.2 lib/generators/avo/templates/resource/resource.tt
avo-2.11.2.pre.1 lib/generators/avo/templates/resource/resource.tt
avo-2.11.1.pre.3 lib/generators/avo/templates/resource/resource.tt
avo-2.11.1 lib/generators/avo/templates/resource/resource.tt
avo-2.11.1.pre.2 lib/generators/avo/templates/resource/resource.tt
avo-2.11.1.pre.1 lib/generators/avo/templates/resource/resource.tt
avo-2.11.0 lib/generators/avo/templates/resource/resource.tt
avo-2.10.3.pre.1 lib/generators/avo/templates/resource/resource.tt
avo-1.25.2 lib/generators/avo/templates/resource/resource.tt
avo-2.10.2 lib/generators/avo/templates/resource/resource.tt
avo-2.9.2.pre1 lib/generators/avo/templates/resource/resource.tt
avo-2.10.0 lib/generators/avo/templates/resource/resource.tt