Module: ArFinderForm::ClientClassMethods
- Defined in:
- lib/ar_finder_form/client_class_methods.rb
Instance Attribute Summary collapse
-
#builder ⇒ Object
readonly
Returns the value of attribute builder.
Instance Method Summary collapse
- #find_options(value = nil) ⇒ Object
- #paginate_options(value = nil) ⇒ Object
- #with_model(model_class, &block) ⇒ Object
Instance Attribute Details
#builder ⇒ Object (readonly)
Returns the value of attribute builder.
4 5 6 |
# File 'lib/ar_finder_form/client_class_methods.rb', line 4 def builder @builder end |
Instance Method Details
#find_options(value = nil) ⇒ Object
12 13 14 15 |
# File 'lib/ar_finder_form/client_class_methods.rb', line 12 def (value = nil) = value if value ||= {} end |
#paginate_options(value = nil) ⇒ Object
17 18 19 20 |
# File 'lib/ar_finder_form/client_class_methods.rb', line 17 def (value = nil) = value if value ||= {} end |
#with_model(model_class, &block) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/ar_finder_form/client_class_methods.rb', line 5 def with_model(model_class, &block) @builder = Builder.new(self, model_class) @builder.instance_eval(&block) @builder.build_methods @builder end |