Class: Tableficate::Filter::Input
- Defined in:
- lib/tableficate/filters/input.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
#attrs, #field_name, #label, #label_options, #name, #table, #template
Instance Method Summary collapse
-
#initialize(table, name, options = {}) ⇒ Input
constructor
A new instance of Input.
Methods inherited from Base
Constructor Details
#initialize(table, name, options = {}) ⇒ Input
Returns a new instance of Input.
4 5 6 7 8 9 |
# File 'lib/tableficate/filters/input.rb', line 4 def initialize(table, name, = {}) super(table, name, ) new_partial = "filters/input_#{@attrs[:type]}" @template = new_partial if table.template.lookup_context.exists?(Tableficate::Utils::template_path(table.template, new_partial, table.theme), [], true) end |