This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
17 lines
323 B
Ruby
17 lines
323 B
Ruby
class Admin::SiteCustomization::Pages::FormComponent < ApplicationComponent
|
|
include TranslatableFormHelper
|
|
include GlobalizeHelper
|
|
|
|
attr_reader :page
|
|
|
|
def initialize(page)
|
|
@page = page
|
|
end
|
|
|
|
private
|
|
|
|
def attribute_name(attribute)
|
|
SiteCustomization::Page.human_attribute_name(attribute)
|
|
end
|
|
end
|