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.0.1.beta17 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta22 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta18 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta19 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta24 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta15 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta16 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta14 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta12 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta13 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta10 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta11 lib/generators/avo/templates/resource/resource.tt
avo-3.0.0.pre19 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta8 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta9 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta6 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta7 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta5 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta2 lib/generators/avo/templates/resource/resource.tt
avo-3.0.1.beta4 lib/generators/avo/templates/resource/resource.tt