Module: Katalyst::Tables::Identifiable::Defaults
- Extended by:
- Defaults
- Included in:
- Defaults, Orderable::FormComponent, Selectable::FormComponent
- Defined in:
- app/components/concerns/katalyst/tables/identifiable.rb
Instance Method Summary collapse
-
#default_table_id(collection = self.collection) ⇒ Object
Returns the default dom id for the table, uses the collection’s model name’s route_key as a sensible default.
Instance Method Details
#default_table_id(collection = self.collection) ⇒ Object
Returns the default dom id for the table, uses the collection’s model name’s route_key as a sensible default.
15 16 17 |
# File 'app/components/concerns/katalyst/tables/identifiable.rb', line 15 def default_table_id(collection = self.collection) collection.model_name.route_key end |