Sha256: 2cb940e5544226d3e7273d84e3a9ae37b8859f3942b9270486cc0ce1c7824e7e
Contents?: true
Size: 528 Bytes
Versions: 4
Compression:
Stored size: 528 Bytes
Contents
class Admin::AdminCommentsController < Admin::BaseController load_and_authorize_resource helper_method :commentable def create create! do |format| format.js {} end end def destroy destroy! do |format| format.js {} end end private def collection if xhr? @collection = AdminComment.find_for_resource(commentable) else super end end def commentable @commentable ||= AdminComment.find_resource(params[:resource_type], params[:resource_id]) end end
Version data entries
4 entries across 4 versions & 1 rubygems