This way it'll be easier to refactor them. We're also giving a proper title to the images index page.
15 lines
263 B
Ruby
15 lines
263 B
Ruby
class Admin::SiteCustomization::Images::IndexComponent < ApplicationComponent
|
|
include Header
|
|
attr_reader :images
|
|
|
|
def initialize(images)
|
|
@images = images
|
|
end
|
|
|
|
private
|
|
|
|
def title
|
|
t("admin.site_customization.images.index.title")
|
|
end
|
|
end
|