Class: DatabaseTables::TableCard
- Inherits:
-
Components::ApplicationComponent
- Object
- Components::ApplicationComponent
- DatabaseTables::TableCard
- Defined in:
- app/views/rails_devtools/database_tables/table_card.rb
Instance Method Summary collapse
-
#initialize(table:) ⇒ TableCard
constructor
A new instance of TableCard.
- #view_template ⇒ Object
Constructor Details
#initialize(table:) ⇒ TableCard
Returns a new instance of TableCard.
5 6 7 |
# File 'app/views/rails_devtools/database_tables/table_card.rb', line 5 def initialize(table:) @table = table end |
Instance Method Details
#view_template ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/views/rails_devtools/database_tables/table_card.rb', line 9 def view_template div(class: "card bg-white text-sm w-full shadow-sm") do div(class: "card-body") do h2(class: "card-title") { @table.table_name.capitalize } columns_list indexes_list end end end |