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.6.6 lib/active_admin/comments/resource_helper.rb
activeadmin-0.6.5 lib/active_admin/comments/resource_helper.rb
activeadmin-0.6.4 lib/active_admin/comments/resource_helper.rb
yousty-activeadmin-1.0.4.pre lib/active_admin/orm/active_record/comments/resource_helper.rb
yousty-activeadmin-1.0.3.pre lib/active_admin/orm/active_record/comments/resource_helper.rb
active_administration-0.0.3 lib/active_admin/orm/active_record/comments/resource_helper.rb
activeadministration-0.0.2 lib/active_admin/orm/active_record/comments/resource_helper.rb
active_administration-0.0.2 lib/active_admin/orm/active_record/comments/resource_helper.rb
activeadministration-0.0.1 lib/active_admin/orm/active_record/comments/resource_helper.rb
active_administration-0.0.1 lib/active_admin/orm/active_record/comments/resource_helper.rb
yousty-activeadmin-1.0.2.pre lib/active_admin/orm/active_record/comments/resource_helper.rb
activeadmin-0.6.3 lib/active_admin/comments/resource_helper.rb
yousty-activeadmin-1.0.1.pre lib/active_admin/orm/active_record/comments/resource_helper.rb
yousty-activeadmin-1.0.0.pre lib/active_admin/orm/active_record/comments/resource_helper.rb
activeadmin-0.6.2 lib/active_admin/comments/resource_helper.rb
activeadmin-0.6.1 lib/active_admin/comments/resource_helper.rb
aa-rails4-0.6.0 lib/active_admin/comments/resource_helper.rb
lalala-4.0.0.dev.141 vendor/deps/active_admin/lib/active_admin/comments/resource_helper.rb
lalala-4.0.0.dev.136 vendor/deps/active_admin/lib/active_admin/comments/resource_helper.rb
lalala-4.0.0.dev.135 vendor/deps/active_admin/lib/active_admin/comments/resource_helper.rb