Sha256: 7ddae95766150d56acde52954fb9b16ed4d826f68b37f2dcd372dd54366cc5f1

Contents?: true

Size: 346 Bytes

Versions: 85

Compression:

Stored size: 346 Bytes

Contents

class CommentsController < InheritedResources::Base
  load_and_authorize_resource

  respond_to :html, :xml, :js

  def destroy
    @post_activity = resource.post_activity

    destroy!
  end
  
  def show    
    parent = resource.post_activity.parent
    redirect_to polymorphic_path(parent.direct_object,:anchor => dom_id(parent))
  end


end

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
social_stream-0.13.1 base/app/controllers/comments_controller.rb
social_stream-base-0.10.1 app/controllers/comments_controller.rb
social_stream-0.13.0 base/app/controllers/comments_controller.rb
social_stream-base-0.10.0 app/controllers/comments_controller.rb
social_stream-0.12.14 base/app/controllers/comments_controller.rb
social_stream-base-0.9.36 app/controllers/comments_controller.rb
social_stream-0.12.13 base/app/controllers/comments_controller.rb
social_stream-base-0.9.35 app/controllers/comments_controller.rb
social_stream-0.12.12 base/app/controllers/comments_controller.rb
social_stream-base-0.9.34 app/controllers/comments_controller.rb
social_stream-0.12.11 base/app/controllers/comments_controller.rb
social_stream-base-0.9.33 app/controllers/comments_controller.rb
social_stream-0.12.10 base/app/controllers/comments_controller.rb
social_stream-base-0.9.32 app/controllers/comments_controller.rb
social_stream-0.12.9 base/app/controllers/comments_controller.rb
social_stream-base-0.9.31 app/controllers/comments_controller.rb
social_stream-0.12.8 base/app/controllers/comments_controller.rb
social_stream-base-0.9.30 app/controllers/comments_controller.rb
social_stream-0.12.7 base/app/controllers/comments_controller.rb
social_stream-base-0.9.29 app/controllers/comments_controller.rb