Sha256: 3c0e34f2c29c0ce5c152d91173d904c577614adf7e8b0fd356654b63e5b2196a
Contents?: true
Size: 447 Bytes
Versions: 5
Compression:
Stored size: 447 Bytes
Contents
begin Page.for_routes.group_by(&:behavior).each do |behavior, pages| pages.each do |page| case behavior when nil else resource( "#{page.class.name.underscore}_#{page.id}", path: page.absolute_path, controller: behavior, only: :show, page_id: page.id ) end end end rescue nil end
Version data entries
5 entries across 5 versions & 1 rubygems