Module: TheComments

Defined in:
lib/the_comments.rb,
lib/the_comments/config.rb,
app/models/concerns/the_comments/user.rb,
app/models/concerns/the_comments/comment.rb,
lib/generators/the_comments/views_generator.rb,
app/models/concerns/the_comments/commentable.rb,
app/models/concerns/the_comments/comment_states.rb,
app/controllers/concerns/the_comments/controller.rb,
app/controllers/concerns/the_comments/view_token.rb

Defined Under Namespace

Modules: Comment, CommentStates, Commentable, Controller, Generators, User, ViewToken Classes: Configuration, Engine

Constant Summary collapse

COMMENTS_COOKIES_TOKEN =
'JustTheCommentsCookies'

Class Method Summary collapse

Class Method Details

.configObject



6
7
8
# File 'lib/the_comments/config.rb', line 6

def self.config
  @config
end

.configure {|@config ||= TheComments::Configuration.new| ... } ⇒ Object

Yields:



2
3
4
# File 'lib/the_comments/config.rb', line 2

def self.configure(&block)
  yield @config ||= TheComments::Configuration.new
end