Sha256: 58071f89d39debcd9de0430482921f3781d68af3698d4f441881f674bd63793d

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

class LogBook::Event < ::ActiveRecord::Base
  self.table_name = "log_book_events"

  attr_accessible :historian, :historizable, :text, :tag_list

  acts_as_taggable

  belongs_to :historian, :polymorphic => true
  belongs_to :historizable, :polymorphic => true

  validates :text, :presence => true

  scope :by_recent, -> { order("id desc") }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
log_book-0.1.7 lib/log_book/event.rb