Class: Models::Index

Inherits:
Views::Base
  • Object
show all
Includes:
Phlex::Rails::Helpers::ContentFor
Defined in:
app/views/databasium/models/index.rb

Instance Method Summary collapse

Constructor Details

#initialize(models:) ⇒ Index

Returns a new instance of Index.



8
9
10
# File 'app/views/databasium/models/index.rb', line 8

def initialize(models:)
  @models = models
end

Instance Method Details

#view_templateObject



12
13
14
15
16
# File 'app/views/databasium/models/index.rb', line 12

def view_template
  content_for(:title) { "Models" }

  div(class: "w-full h-full p-4") { render_models }
end