Sha256: 38e0ec2525d6ed3b8b9708ab195dedeb1c5177acc0295b5d96eb901f9bb3cbee
Contents?: true
Size: 764 Bytes
Versions: 3
Compression:
Stored size: 764 Bytes
Contents
module TheComments class UserRoutes def call mapper, options = {} mapper.collection do mapper.get :manage mapper.get :my_draft mapper.get :my_published mapper.get :my_comments mapper.get :draft mapper.get :published mapper.get :deleted mapper.get :spam end mapper.member do mapper.post :to_spam mapper.post :to_draft mapper.post :to_published mapper.delete :to_deleted end end end class AdminRoutes def call mapper, options = {} mapper.collection do mapper.get :total_draft mapper.get :total_published mapper.get :total_deleted mapper.get :total_spam end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
the_comments-2.2.2 | config/routes.rb |
the_comments-2.2.1 | config/routes.rb |
the_comments-2.2.0 | config/routes.rb |