Sha256: 650f2c4f7f39b7096a44c04303fdc138c68731afa0f7022170a59da153a6c486

Contents?: true

Size: 242 Bytes

Versions: 8

Compression:

Stored size: 242 Bytes

Contents

module RailsAdminComments
  module ModelCommentable
    extend ActiveSupport::Concern

    module ClassMethods
      def rails_admin_model_comments
        RailsAdminComments::ModelComment.where(model_name: self)
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_admin_comments-0.2.3.3 app/models/concerns/rails_admin_comments/model_commentable.rb
rails_admin_comments-0.3.0.4 app/models/concerns/rails_admin_comments/model_commentable.rb
rails_admin_comments-0.2.3.2 app/models/concerns/rails_admin_comments/model_commentable.rb
rails_admin_comments-0.3.0.3 app/models/concerns/rails_admin_comments/model_commentable.rb
rails_admin_comments-0.3.0.1 app/models/concerns/rails_admin_comments/model_commentable.rb
rails_admin_comments-0.3.0 app/models/concerns/rails_admin_comments/model_commentable.rb
rails_admin_comments-0.2.1 app/models/concerns/rails_admin_comments/model_commentable.rb
rails_admin_comments-0.2.0 app/models/concerns/rails_admin_comments/model_commentable.rb