decko-commons/decko

View on GitHub
mod/comment/set/right/discussion.rb

Summary

Maintainability
A
0 mins
Test Coverage
%i[open open_content titled titled_content].each do |viewname|
  view viewname, unknown: true do
    voo.show :comment_box
    super()
  end
end

view :core, unknown: true do
  output [super(), render_comment_box(optional: :hide)]
end

view :input do
  return super() unless in_multi_card_editor?

  [with_nest_mode(:normal) { render_core hide: :comment_box }, comment_box]
end