module Comments
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/comments.rb, line 10 def config return @config if defined?(@config) @config = Configuration.new @config.user_class = 'User' @config.user_name_method = 'name' @config.user_avatar_url_method = nil @config.user_profile_url_method = 'profile_url' @config.authenticate_user_method = 'authenticate_user!' @config.current_user_method = 'current_user' @config.max_reply_depth = 10 @config end
configure(&block)
click to toggle source
# File lib/comments.rb, line 23 def configure(&block) config.instance_exec(&block) end