Sha256: dec095a8a69006890416f6d5b1e915a37b3486f03d25a89342809b34692fbfea
Contents?: true
Size: 415 Bytes
Versions: 5
Compression:
Stored size: 415 Bytes
Contents
class CMS::Routes < SimpleDelegator def draw namespace :cms do get 'description' => 'root#description' get '' => 'root#index' CMS::Configuration.types.each do |type| resources type.model_name.route_key end yield if block_given? end CMS::Configuration.pages.each do |page| get page => "cms/pages#show", page: page.dup, as: "cms_#{page}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
honey-cms-0.2.4 | lib/cms/routes.rb |
honey-cms-0.2.3 | lib/cms/routes.rb |
honey-cms-0.2.2 | lib/cms/routes.rb |
honey-cms-0.2.1 | lib/cms/routes.rb |
honey-cms-0.2.0 | lib/cms/routes.rb |