Class: Katalyst::Tables::Config
- Inherits:
-
Object
- Object
- Katalyst::Tables::Config
- Defined in:
- lib/katalyst/tables/config.rb
Instance Attribute Summary collapse
-
#collection_types ⇒ Object
Returns the value of attribute collection_types.
-
#component_extensions ⇒ Object
Returns the value of attribute component_extensions.
-
#date_format ⇒ Object
Returns the value of attribute date_format.
-
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/katalyst/tables/config.rb', line 13 def initialize self.collection_types = { boolean: "Katalyst::Tables::Collection::Type::Boolean", date: "Katalyst::Tables::Collection::Type::Date", enum: "Katalyst::Tables::Collection::Type::Enum", float: "Katalyst::Tables::Collection::Type::Float", integer: "Katalyst::Tables::Collection::Type::Integer", string: "Katalyst::Tables::Collection::Type::String", query: "Katalyst::Tables::Collection::Type::Query", search: "Katalyst::Tables::Collection::Type::Search", } self.component_extensions = %w[ Katalyst::Tables::Identifiable Katalyst::Tables::Orderable Katalyst::Tables::Selectable Katalyst::Tables::Sortable ] self.date_format = :default self.datetime_format = :default end |
Instance Attribute Details
#collection_types ⇒ Object
Returns the value of attribute collection_types.
8 9 10 |
# File 'lib/katalyst/tables/config.rb', line 8 def collection_types @collection_types end |
#component_extensions ⇒ Object
Returns the value of attribute component_extensions.
8 9 10 |
# File 'lib/katalyst/tables/config.rb', line 8 def component_extensions @component_extensions end |
#date_format ⇒ Object
Returns the value of attribute date_format.
8 9 10 |
# File 'lib/katalyst/tables/config.rb', line 8 def date_format @date_format end |
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
8 9 10 |
# File 'lib/katalyst/tables/config.rb', line 8 def datetime_format @datetime_format end |