Class: ReferencesOneComponent
- Inherits:
-
Puffer::Component::Base
- Object
- AbstractController::Base
- Puffer::Component::Base
- ReferencesOneComponent
- Defined in:
- app/components/references_one_component.rb
Instance Attribute Summary
Attributes inherited from Puffer::Component::Base
#field, #identifer, #opts, #parent_controller, #record, #records, #resource
Instance Method Summary collapse
Methods inherited from Puffer::Component::Base
#component_id, #event_options, #event_path, #event_url, #fallback_action, #initialize, #javascript_wrap, #method_for_action, #process, #render, #replace
Methods included from Puffer::Component::Base::ClassMethods
Constructor Details
This class inherits a constructor from Puffer::Component::Base
Instance Method Details
#choose ⇒ Object
7 8 9 10 |
# File 'app/components/references_one_component.rb', line 7 def choose @records = field.reflection.klass.to_adapter.filter(field.reflection.klass, field.children, :search => params[:puffer_search]).page(params[:page]) render end |
#filter ⇒ Object
12 13 14 |
# File 'app/components/references_one_component.rb', line 12 def filter end |
#form ⇒ Object
3 4 5 |
# File 'app/components/references_one_component.rb', line 3 def form render end |