Sha256: 814e6a3a780830791b7ded9a2354b5c37fcb840ab95c0bba660ec4d4c60f7e9b

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 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.1 lib/log_book/event.rb