scinote-web/app/helpers/addons_helper.rb

9 lines
161 B
Ruby
Raw Normal View History

module AddonsHelper
def list_all_addons
Rails::Engine
.subclasses
.select { |c| c.name.start_with?('Scinote') }
.map(&:parent)
end
end