Class: TinyAdmin::Views::Components::BasicComponent

Inherits:
Phlex::HTML
  • Object
show all
Defined in:
lib/tiny_admin/views/components/basic_component.rb

Direct Known Subclasses

FieldValue, FiltersForm, Flash, Head, Navbar, Pagination, Widgets

Instance Method Summary collapse

Instance Method Details

#update_attributes(attributes) ⇒ Object



7
8
9
10
11
# File 'lib/tiny_admin/views/components/basic_component.rb', line 7

def update_attributes(attributes)
  attributes.each do |key, value|
    send("#{key}=", value)
  end
end