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.5.3 lib/generators/avo/templates/resource/resource.tt
avo-3.5.2 lib/generators/avo/templates/resource/resource.tt
avo-3.5.1 lib/generators/avo/templates/resource/resource.tt
avo-3.5.0 lib/generators/avo/templates/resource/resource.tt
avo-3.4.4 lib/generators/avo/templates/resource/resource.tt
avo-3.4.3 lib/generators/avo/templates/resource/resource.tt
avo-3.4.2 lib/generators/avo/templates/resource/resource.tt
avo-3.4.1 lib/generators/avo/templates/resource/resource.tt
avo-3.4.0 lib/generators/avo/templates/resource/resource.tt
avo-3.3.6 lib/generators/avo/templates/resource/resource.tt
avo-3.3.5 lib/generators/avo/templates/resource/resource.tt
avo-3.3.4 lib/generators/avo/templates/resource/resource.tt
avo-3.3.3 lib/generators/avo/templates/resource/resource.tt
avo-3.3.2 lib/generators/avo/templates/resource/resource.tt
avo-3.3.1 lib/generators/avo/templates/resource/resource.tt
avo-3.3.0 lib/generators/avo/templates/resource/resource.tt
avo-3.2.3 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta23 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta20 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta21 lib/generators/avo/templates/resource/resource.tt