config/routes.rb in styleus-0.0.10 vs config/routes.rb in styleus-0.0.11

- old
+ new

@@ -1,9 +1,10 @@ Rails.application.routes.draw do resources :components, only: [:index, :show] do collection do - Styleus::COMPONENT_SPACES.each do |c| - resources c, only: [:index, :show], controller: :components, components: c.to_s + Styleus::Component.sections.each do |section, _| + section_route = section.to_s.pluralize + resources section_route, only: [:index, :show], controller: :components, components: section_route end end end end