app/components/coco/modals/modal/modal.rb in coveragebook_components-0.13.0 vs app/components/coco/modals/modal/modal.rb in coveragebook_components-0.13.1
- old
+ new
@@ -34,10 +34,10 @@
def initialize(name:, show: false, **kwargs)
@name = name
@show = show
@container_type = nil
- title { kwargs[:title] } if kwargs[:title]
+ with_title { kwargs[:title] } if kwargs[:title]
end
def render_as_modal?
request.headers["Turbo-Frame"].present? || show
end