Sha256: 013edca8693a0f0f5103ec5511b2e9edce8d29ff6fdc41ccb69d327a21a3911a

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

module Georgia
  module PageableRouteConcern
    def self.included(base)
      base.instance_eval do
        concern :pageable do

          collection do
            get :search
            post :sort
            post :publish
            post :unpublish
            delete '/', to: :destroy
          end

          member do
            get :copy
            get :settings
          end

          resources :revisions do
            member do
              get :preview
              get :draft
              get :request_review
              get :approve
              get :store
              get :decline
              get :restore
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 app/routes/georgia/pageable_route_concern.rb