Class: Tableficate::Filter::Input
- Defined in:
- lib/tableficate/filters/input.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
#field_name, #label, #name, #options, #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_template = "filters/input_#{[:type]}" @template = new_template if table.template.lookup_context.exists?(Tableficate::Utils::template_path(new_template, table.[:theme]), [], true) end |