Sha256: 10767b475cd72cd519b873808f0299d0721951a21b32863c3a3ec1a928ee4d4b

Contents?: true

Size: 836 Bytes

Versions: 2

Compression:

Stored size: 836 Bytes

Contents

class CommentsController < ApplicationController
  # Define your restrict methods and use them like this:
  #
  # before_action :user_required,      except: [:index, :create]
  # 
  # before_action :owner_required,     only: [:my, :incoming, :edit, :trash]
  # before_action :moderator_required, only: [:update, :to_published, :to_draft, :to_spam, :to_trash]

  include TheCommentsController::Base

  # Public methods:
  #
  # [:index, :create]

  # Application side methods:
  # Overwrite following default methods if it's need
  # Following methods based on *current_user* helper method
  #
  # [:my, :incoming, :edit, :trash]

  # You must protect following methods
  # Only comments moderator (holder or admin) can invoke following actions
  #
  # [:update, :to_published, :to_draft, :to_spam, :to_trash]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
the_comments-0.9.9 lib/generators/the_comments/templates/comments_controller.rb
the_comments-0.9.0 lib/generators/the_comments/templates/comments_controller.rb