Class: Decidim::Design::ApplicationController
- Inherits:
-
DecidimController
- Object
- DecidimController
- Decidim::Design::ApplicationController
- Includes:
- NeedsOrganization
- Defined in:
- decidim-design/app/controllers/decidim/design/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#path_items(path) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'decidim-design/app/controllers/decidim/design/application_controller.rb', line 12 def path_items(path) files = Dir.glob("#{gem_path}/app/views/decidim/design/#{path}/*.html.erb") files.map do |file| name = File.basename(file, ".html.erb") { name:, path: send("#{path.singularize}_path", name) } end end |