Module: Commontator

Defined in:
lib/commontator.rb,
lib/commontator/engine.rb,
lib/commontator/version.rb,
app/models/commontator/thread.rb,
lib/commontator/shared_helper.rb,
app/models/commontator/comment.rb,
lib/commontator/commontable_config.rb,
lib/commontator/commontator_config.rb,
app/models/commontator/subscription.rb,
lib/commontator/acts_as_commontable.rb,
lib/commontator/acts_as_commontator.rb,
lib/commontator/controller_includes.rb,
app/helpers/commontator/threads_helper.rb,
lib/commontator/security_transgression.rb,
app/helpers/commontator/application_helper.rb,
app/mailers/commontator/subscriptions_mailer.rb,
app/controllers/commontator/threads_controller.rb,
app/controllers/commontator/comments_controller.rb,
app/controllers/commontator/application_controller.rb,
app/controllers/commontator/subscriptions_controller.rb

Defined Under Namespace

Modules: ActsAsCommontable, ActsAsCommontator, ApplicationHelper, ControllerIncludes, SharedHelper, ThreadsHelper Classes: ApplicationController, Comment, CommentsController, CommontableConfig, CommontatorConfig, Engine, SecurityTransgression, Subscription, SubscriptionsController, SubscriptionsMailer, Thread, ThreadsController

Constant Summary collapse

ENGINE_ATTRIBUTES =

Can be set in initializer only

[
  :current_user_proc,
  :javascript_proc
]
COMMONTATOR_ATTRIBUTES =

Can be set in initializer or passed as an option to acts_as_commontator

[
  :user_name_clickable,
  :user_name_proc,
  :user_email_proc,
  :user_admin_proc,
  :subscription_email_enable_proc
]
COMMONTABLE_ATTRIBUTES =

Can be set in initializer or passed as an option to acts_as_commontable

[
  :comment_name,
  :comment_create_verb_present,
  :comment_create_verb_past,
  :comment_edit_verb_present,
  :comment_edit_verb_past,
  :timestamp_format,
  :admin_can_edit_comments,
  :auto_subscribe_on_comment,
  :can_edit_own_comments,
  :can_edit_old_comments,
  :can_delete_own_comments,
  :can_delete_old_comments,
  :can_subscribe_to_thread,
  :can_vote_on_comments,
  :combine_upvotes_and_downvotes,
  :comments_ordered_by_votes,
  :closed_threads_are_readable,
  :deleted_comments_are_visible,
  :can_read_thread_proc,
  :can_edit_thread_proc,
  :commontable_name_proc,
  :commontable_url_proc,
  :subscription_email_from_proc,
  :subscription_email_subject_proc
]
VERSION =
"4.1.2"

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Commontator)

    the object that the method was called on



55
56
57
# File 'lib/commontator.rb', line 55

def self.configure
  yield self
end