Module: ActiveAdmin::Comments::NamespaceHelper

Defined in:
lib/active_admin/comments/namespace_helper.rb

Instance Method Summary collapse

Instance Method Details

#comments?Boolean

Returns true of the namespace allows comments

Returns:

  • (Boolean)


7
8
9
# File 'lib/active_admin/comments/namespace_helper.rb', line 7

def comments?
  application.allow_comments_in && application.allow_comments_in.include?(name)
end