Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/commentable/routes.rb

Instance Method Summary collapse

Instance Method Details

#commentable(options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/commentable/routes.rb', line 4

def commentable(options = {})
  resources :comments, options do
    put :spam, :troll, :on => :member
  end
end