Sha256: c3e5bd53d6ae5aab5371c16a5b6614e1865a44fb6675538715dedacf3b3d837e

Contents?: true

Size: 256 Bytes

Versions: 3

Compression:

Stored size: 256 Bytes

Contents

module ActiveAdmin
  module Comments

    module NamespaceHelper

      # Returns true of the namespace allows comments
      def comments?
        ActiveAdmin.allow_comments_in && ActiveAdmin.allow_comments_in.include?(name)
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin-0.2.2 lib/active_admin/comments/namespace_helper.rb
activeadmin-0.2.1 lib/active_admin/comments/namespace_helper.rb
activeadmin-0.2.0 lib/active_admin/comments/namespace_helper.rb