Sha256: c26fd0cea5797cb554ce19ec2f63066dead9eac0335e85f1776524ab514f997d

Contents?: true

Size: 256 Bytes

Versions: 24

Compression:

Stored size: 256 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    def pages_resources(&block)
      resources :pages do
        collection do
          get :index
          post :rebuild
        end
        instance_eval &block if block_given?
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
brightcontent-pages-2.6.0 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.5.1 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.5.0 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.4.6 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.4.5 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.4.4 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.4.3 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.4.2 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.4.1 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.4.0 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.3.4 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.3.3 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.3.2 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.3.1 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.3.0 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.2.2 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.2.1 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.2.0 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.1.5 lib/brightcontent/pages/routes.rb
brightcontent-pages-2.1.4 lib/brightcontent/pages/routes.rb