Module: ActiveAdmin::Comments::NamespaceHelper
- Defined in:
- lib/active_admin/comments/namespace_helper.rb
Instance Method Summary collapse
-
#comments? ⇒ Boolean
Returns true of the namespace allows comments.
Instance Method Details
#comments? ⇒ Boolean
Returns true of the namespace allows comments
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 |