Class: Tableficate::Filter::CollectionBase

Inherits:
Base
  • Object
show all
Defined in:
lib/tableficate/filters/collection_base.rb

Direct Known Subclasses

CheckBox, Radio, Select

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs, #field_name, #label, #label_options, #name, #table, #template

Instance Method Summary collapse

Methods inherited from Base

#field_value

Constructor Details

#initialize(table, name, options = {}) ⇒ CollectionBase

Returns a new instance of CollectionBase.



6
7
8
9
10
# File 'lib/tableficate/filters/collection_base.rb', line 6

def initialize(table, name, options = {})
  @collection = options.delete(:collection) || []

  super(table, name, options)
end

Instance Attribute Details

#collectionObject (readonly)

Returns the value of attribute collection.



4
5
6
# File 'lib/tableficate/filters/collection_base.rb', line 4

def collection
  @collection
end