Move dashboard resources partial to a component
We're renaming the HTML class (and removing the id attribute, which was only used in tests) in order to follow our naming conventions.
This commit is contained in:
7
app/components/dashboard/resources_component.rb
Normal file
7
app/components/dashboard/resources_component.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Dashboard::ResourcesComponent < ApplicationComponent
|
||||
attr_reader :active_resources
|
||||
|
||||
def initialize(active_resources)
|
||||
@active_resources = active_resources
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user