Module: ActiveAdmin::Comments::ResourceHelper

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_admin/orm/active_record/comments/resource_helper.rb

Instance Method Summary collapse

Instance Method Details

#comments?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/active_admin/orm/active_record/comments/resource_helper.rb', line 12

def comments?
  (namespace.comments? && comments != false) || comments == true
end