All calls were using `I18n.locale` as the second parameter, so we might as well make it optional.
14 lines
242 B
Ruby
14 lines
242 B
Ruby
class Layout::TopLinksComponent < ApplicationComponent
|
|
delegate :content_block, to: :helpers
|
|
|
|
def render?
|
|
top_links_content_block.present?
|
|
end
|
|
|
|
private
|
|
|
|
def top_links_content_block
|
|
content_block("top_links")
|
|
end
|
|
end
|