Sha256: b2d2712a614b6fd6cf5f4d5c624208a613685ed872d028436139d01130dc24a4

Contents?: true

Size: 357 Bytes

Versions: 3

Compression:

Stored size: 357 Bytes

Contents

module ActiveAdmin

  class Comment < ActiveRecord::Base
    self.table_name = "active_admin_comments"

    belongs_to :resource, :polymorphic => true
    belongs_to :author, :polymorphic => true

    validates_presence_of :resource_id
    validates_presence_of :resource_type
    validates_presence_of :body
    validates_presence_of :namespace
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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