Class: PostsController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/posts_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



4
5
6
7
8
# File 'app/controllers/posts_controller.rb', line 4

def destroy
  @post_activity = resource.post_activity

  destroy!
end