Sha256: dd222839ae7a4ac576f13550afe24db3216e690ec51350b4fb720549cf1c37c9

Contents?: true

Size: 294 Bytes

Versions: 87

Compression:

Stored size: 294 Bytes

Contents

class Avo::Resources::<%= resource_class %> < Avo::BaseResource
  self.includes = []<%= model_class_from_args %>
  # self.search = {
  #   query: -> { query.ransack(id_eq: params[:q], m: "or").result(distinct: false) }
  # }

  def fields
    field :id, as: :id<%= generate_fields %>
  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
avo-3.10.2 lib/generators/avo/templates/resource/resource.tt
avo-3.10.1 lib/generators/avo/templates/resource/resource.tt
avo-3.10.0 lib/generators/avo/templates/resource/resource.tt
avo-3.9.2 lib/generators/avo/templates/resource/resource.tt
avo-3.9.1 lib/generators/avo/templates/resource/resource.tt
avo-3.8.2 lib/generators/avo/templates/resource/resource.tt
avo-3.9.0 lib/generators/avo/templates/resource/resource.tt
avo-3.8.1 lib/generators/avo/templates/resource/resource.tt
avo-3.8.0 lib/generators/avo/templates/resource/resource.tt
avo-3.6.4 lib/generators/avo/templates/resource/resource.tt
avo-3.6.3 lib/generators/avo/templates/resource/resource.tt
avo-3.6.2 lib/generators/avo/templates/resource/resource.tt
avo-3.6.1 lib/generators/avo/templates/resource/resource.tt
avo-3.6.0 lib/generators/avo/templates/resource/resource.tt
avo-3.5.8 lib/generators/avo/templates/resource/resource.tt
avo-3.5.7 lib/generators/avo/templates/resource/resource.tt
avo-3.5.6 lib/generators/avo/templates/resource/resource.tt
avo-3.5.6.beta1 lib/generators/avo/templates/resource/resource.tt
avo-3.5.5 lib/generators/avo/templates/resource/resource.tt
avo-3.5.4 lib/generators/avo/templates/resource/resource.tt