Module: RailsAdminComments

Defined in:
lib/rails_admin_comments.rb,
lib/rails_admin_comments/engine.rb,
lib/rails_admin_comments/helper.rb,
lib/rails_admin_comments/version.rb,
lib/rails_admin_comments/configuration.rb,
app/models/rails_admin_comments/comment.rb,
app/models/rails_admin_comments/comment.rb,
app/models/rails_admin_comments/model_comment.rb,
app/models/rails_admin_comments/model_comment.rb,
lib/rails_admin_comments/models/mongoid/comments.rb,
app/models/concerns/rails_admin_comments/commentable.rb,
lib/rails_admin_comments/models/mongoid/model_comments.rb,
app/models/concerns/rails_admin_comments/model_commentable.rb

Defined Under Namespace

Modules: Commentable, Comments, Helper, ModelCommentable, ModelComments Classes: Comment, Configuration, Engine, ModelComment

Constant Summary collapse

VERSION =
"0.2.3.3".freeze

Class Method Summary collapse

Class Method Details

.active_record?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/rails_admin_comments.rb', line 34

def active_record?
  orm == :active_record
end

.mongoid?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/rails_admin_comments.rb', line 30

def mongoid?
  orm == :mongoid
end

.ormObject



21
22
23
24
25
26
27
28
# File 'lib/rails_admin_comments.rb', line 21

def orm
  :mongoid
  # if defined?(::Mongoid)
  #   :mongoid
  # else
  #   :active_record
  # end
end