Sha256: 6b69af813d5a0d0a86a2a62ad9dfdfddff421716b84f5c28e2fbeedb36031684

Contents?: true

Size: 259 Bytes

Versions: 5

Compression:

Stored size: 259 Bytes

Contents

class ReferencesOneComponent < Puffer::Component::Base

  def form
    render
  end

  def choose
    @records = field.reflection.klass.includes(field.children.includes).where(field.children.searches(params[:search])).page(params[:page])
    render
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puffer-0.0.29 app/components/references_one_component.rb
puffer-0.0.28 app/components/references_one_component.rb
puffer-0.0.26 app/components/references_one_component.rb
puffer-0.0.25 app/components/references_one_component.rb
puffer-0.0.24 app/components/references_one_component.rb