config/initializers/commontator.rb in commontator-4.11.0 vs config/initializers/commontator.rb in commontator-4.11.1
- old
+ new
@@ -22,12 +22,11 @@
# or to reapply JQuery UI styles after Ajax calls
# Objects visible in view templates can be accessed
# through the view object (for example, view.flash)
# However, the view does not include the main application's helpers
# Default: lambda { |view| '$("#error_explanation").remove();' }
- config.javascript_proc = lambda { |view|
- '$("#error_explanation").remove();' }
+ config.javascript_proc = lambda { |view| '$("#error_explanation").remove();' }
# User (acts_as_commontator) Configuration
@@ -97,18 +96,18 @@
config.comment_filter = nil
# thread_read_proc
# Type: Proc
# Arguments: a thread (Commontator::Thread), a user (acts_as_commontator)
- # Returns: a Boolean, true iif the user should be allowed to read that thread
+ # Returns: a Boolean, true if and only if the user should be allowed to read that thread
# Note: can be called with a user object that is nil (if they are not logged in)
# Default: lambda { |thread, user| true } (anyone can read any thread)
config.thread_read_proc = lambda { |thread, user| true }
# thread_moderator_proc
# Type: Proc
# Arguments: a thread (Commontator::Thread), a user (acts_as_commontator)
- # Returns: a Boolean, true iif the user is a moderator for that thread
+ # Returns: a Boolean, true if and only if the user is a moderator for that thread
# If you want global moderators, make this proc true for them regardless of thread
# Default: lambda { |thread, user| false } (no moderators)
config.thread_moderator_proc = lambda { |thread, user| false }
# comment_editing