Sha256: 39ed479b7d7e02b1705ee611ff152887aef4dba25aa6df6c9d8109e84c93c350

Contents?: true

Size: 260 Bytes

Versions: 88

Compression:

Stored size: 260 Bytes

Contents

module ActiveAdmin
  module Comments

    module ResourceHelper
      extend ActiveSupport::Concern

      included do
        attr_accessor :comments
      end

      def comments?
        namespace.comments? && comments != false
      end
    end

  end
end

Version data entries

88 entries across 88 versions & 9 rubygems

Version Path
activeadmin-0.3.1 lib/active_admin/comments/resource_helper.rb
activeadmin-0.3.0 lib/active_admin/comments/resource_helper.rb
nsm-activeadmin-0.2.2 lib/active_admin/comments/resource_helper.rb
saulolso-activeadmin-0.2.2.1 lib/active_admin/comments/resource_helper.rb
saulolso-activeadmin-0.2.2 lib/active_admin/comments/resource_helper.rb
activeadmin-0.2.2 lib/active_admin/comments/resource_helper.rb
activeadmin-0.2.1 lib/active_admin/comments/resource_helper.rb
activeadmin-0.2.0 lib/active_admin/comments/resource_helper.rb