Sha256: b82cd688e8b1882ed882169accc30a7c48f8ab18ec252a7adcc284217d233676
Contents?: true
Size: 432 Bytes
Versions: 3
Compression:
Stored size: 432 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]) @records = field.reflection.klass.to_adapter.filter(field.reflection.klass, field.children, :search => params[:puffer_search]).page(params[:page]) render end def filter end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.32 | app/components/references_one_component.rb |
puffer-0.0.31 | app/components/references_one_component.rb |
puffer-0.0.30 | app/components/references_one_component.rb |