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