ref: master
plugins/comment_group/controllers/public/comment_group_plugin_public_controller.rb
1 2 3 4 5 6 7 8
class CommentGroupPluginPublicController < PublicController append_view_path File.join(File.dirname(__FILE__) + '/../views') def comment_group render :json => { :group_id => Comment.find(params[:id]).group_id } end end