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.9.1.pre7 lib/generators/avo/templates/resource/resource.tt
avo-2.9.1.pre6 lib/generators/avo/templates/resource/resource.tt
avo-2.9.1.pre5 lib/generators/avo/templates/resource/resource.tt
avo-2.9.1.pre4 lib/generators/avo/templates/resource/resource.tt
avo-2.9.1.pre3 lib/generators/avo/templates/resource/resource.tt
avo-2.9.1.pre2 lib/generators/avo/templates/resource/resource.tt
avo-2.9.1.pre1 lib/generators/avo/templates/resource/resource.tt
avo-2.9.0 lib/generators/avo/templates/resource/resource.tt
avo-2.8.0 lib/generators/avo/templates/resource/resource.tt
avo-2.7.1.pre.1 lib/generators/avo/templates/resource/resource.tt
avo-2.7.0 lib/generators/avo/templates/resource/resource.tt
avo-2.6.1.pre.2 lib/generators/avo/templates/resource/resource.tt
avo-2.6.1.pre.1 lib/generators/avo/templates/resource/resource.tt
avo-2.6.0 lib/generators/avo/templates/resource/resource.tt
avo-2.5.2.pre.7 lib/generators/avo/templates/resource/resource.tt
avo-2.5.2.pre.6 lib/generators/avo/templates/resource/resource.tt
avo-2.5.2.pre.5 lib/generators/avo/templates/resource/resource.tt
avo-2.5.2.pre.4 lib/generators/avo/templates/resource/resource.tt
avo-2.5.2.pre.3 lib/generators/avo/templates/resource/resource.tt
avo-2.5.2.pre.2 lib/generators/avo/templates/resource/resource.tt