Module: Georgia::PageableRouteConcern

Defined in:
app/routes/georgia/pageable_route_concern.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/routes/georgia/pageable_route_concern.rb', line 3

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