Sha256: d3bef5d77f7f6f7813573fc585a9069618682eb9c807aa44b5d119dc781b23c7

Contents?: true

Size: 969 Bytes

Versions: 5

Compression:

Stored size: 969 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    def commontable
      namespace :commontator do
        resources :comment_commontable_threads, :only => [:show], :shallow => true do
          resources :comments, :except => [:index], :shallow => true
          put 'close', :on => :member
          put 'reopen', :on => :member
          get 'subscribe', :to => 'subscriptions#create',
                            :as => 'subscribe',
                            :on => :member
          get 'unsubscribe', :to => 'subscriptions#destroy',
                              :as => 'unsubscribe',
                              :on => :member
        end
      end
    end
    
    def commontator
      namespace :commontator do
        resources :subscriptions, :only => [:index], :shallow => true
      end
    end

    def commentable
      commontable
    end
    
    def commonter
      commontator
    end
    
    def commentator
      commontator
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commontator-0.4.1 lib/commontator/routes.rb~
commontator-0.3.10 lib/commontator/routes.rb~
commontator-0.2.4 lib/commontator/routes.rb~
commontator-0.2.0 lib/commontator/routes.rb~
commontator-0.1.46 lib/commontator/routes.rb~