Sha256: ee6126dfa78bbcbcc56521799e9fd40dd326cbade6aaf82e2024b8ad4df34180

Contents?: true

Size: 294 Bytes

Versions: 86

Compression:

Stored size: 294 Bytes

Contents

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

  field :id, as: :id<%= generate_fields %>
  # add fields here
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
avo-2.53.0 lib/generators/avo/templates/resource/resource.tt
avo-2.52.0 lib/generators/avo/templates/resource/resource.tt
avo-2.49.0 lib/generators/avo/templates/resource/resource.tt
avo-2.48.0 lib/generators/avo/templates/resource/resource.tt
avo-2.47.0 lib/generators/avo/templates/resource/resource.tt
avo-2.46.0 lib/generators/avo/templates/resource/resource.tt
avo-2.45.0 lib/generators/avo/templates/resource/resource.tt
avo-2.44.0 lib/generators/avo/templates/resource/resource.tt
avo-2.43.0 lib/generators/avo/templates/resource/resource.tt
avo-2.42.2 lib/generators/avo/templates/resource/resource.tt
avo-2.42.1 lib/generators/avo/templates/resource/resource.tt
avo-2.42.0 lib/generators/avo/templates/resource/resource.tt
avo-2.41.0 lib/generators/avo/templates/resource/resource.tt
avo-2.40.0 lib/generators/avo/templates/resource/resource.tt
avo-2.39.0 lib/generators/avo/templates/resource/resource.tt
avo-2.38.0 lib/generators/avo/templates/resource/resource.tt
avo-2.37.2 lib/generators/avo/templates/resource/resource.tt
avo-2.37.1 lib/generators/avo/templates/resource/resource.tt
avo-2.37.0 lib/generators/avo/templates/resource/resource.tt
avo-2.36.3 lib/generators/avo/templates/resource/resource.tt