Module: Para::Admin::ComponentsHelper
- Defined in:
- app/helpers/para/admin/components_helper.rb
Instance Method Summary collapse
Instance Method Details
#ordered_components ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/para/admin/components_helper.rb', line 3 def ordered_components @component_sections.each_with_object([]) do |section, components| section.components.each do |component| components << component if can?(:read, component) end end.sort_by(&:name) end |