mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
22 lines
385 B
Ruby
22 lines
385 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Primer
|
|
module OpenProject
|
|
module Forms
|
|
# :nodoc:
|
|
class HtmlContent < Primer::Forms::BaseComponent
|
|
def initialize(&html_block)
|
|
super()
|
|
@html_block = html_block
|
|
end
|
|
|
|
def hidden? = false
|
|
|
|
def perform_render(&)
|
|
super(&@html_block)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|