Sha256: f97c20cf9295ecc128c04a897942644e026907228eaab98b53d5c0e3f14d88ea

Contents?: true

Size: 256 Bytes

Versions: 9

Compression:

Stored size: 256 Bytes

Contents

module ActiveAdmin
  module Comments

    module NamespaceHelper

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

    end

  end
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
andrewroth_activeadmin-0.3.4 lib/active_admin/comments/namespace_helper.rb
activeadmin-0.3.4 lib/active_admin/comments/namespace_helper.rb
activeadmin-0.3.3 lib/active_admin/comments/namespace_helper.rb
activeadmin-0.3.2 lib/active_admin/comments/namespace_helper.rb
activeadmin-0.3.1 lib/active_admin/comments/namespace_helper.rb
activeadmin-0.3.0 lib/active_admin/comments/namespace_helper.rb
nsm-activeadmin-0.2.2 lib/active_admin/comments/namespace_helper.rb
saulolso-activeadmin-0.2.2.1 lib/active_admin/comments/namespace_helper.rb
saulolso-activeadmin-0.2.2 lib/active_admin/comments/namespace_helper.rb