Class: Models::Templates::Attribute
- Inherits:
-
Base
- Object
- Base
- Models::Templates::Attribute
- Defined in:
- app/components/databasium/models/templates/attribute.rb
Instance Method Summary collapse
-
#initialize(name: nil, params: nil) ⇒ Attribute
constructor
A new instance of Attribute.
- #view_template ⇒ Object
Constructor Details
#initialize(name: nil, params: nil) ⇒ Attribute
Returns a new instance of Attribute.
4 5 6 7 |
# File 'app/components/databasium/models/templates/attribute.rb', line 4 def initialize(name: nil, params: nil) @name = name @params = params end |
Instance Method Details
#view_template ⇒ Object
9 10 11 |
# File 'app/components/databasium/models/templates/attribute.rb', line 9 def view_template div(data: { controller: "attribute" }) { render_attribute_fields } end |