Method: Primer::OpenProject::PageHeader#render?
- Defined in:
- app/components/primer/open_project/page_header.rb
permalink #render? ⇒ Boolean
254 255 256 257 258 259 |
# File 'app/components/primer/open_project/page_header.rb', line 254 def render? raise ArgumentError, "PageHeader needs a title and a breadcrumb. Please use the `with_title` and `with_breadcrumbs` slot" unless || Rails.env.production? raise ArgumentError, "PageHeader allows only a maximum of 5 actions" if actions.count > 5 title? && end |