Sha256: 1cf5483f3c3ba7362d0bb70163763bd43f19733713e6b00bcd3b0e90e8742195

Contents?: true

Size: 291 Bytes

Versions: 10

Compression:

Stored size: 291 Bytes

Contents

require 'dm-core'
require 'dm-migrations'
require 'slf4r/ruby_logger'

class Audit
  include DataMapper::Resource

  property :id, Serial

  property :login, String
  property :message, String

  property :created_at, DateTime

  before :save do
    self.created_at = DateTime.now
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ixtlan-audit-0.4.3 spec/audit_manager_spec.rb~
ixtlan-audit-0.4.2 spec/audit_manager_spec.rb~
ixtlan-audit-0.4.1 spec/audit_manager_spec.rb~
ixtlan-audit-0.4.0 spec/audit_manager_spec.rb~
ixtlan-audit-0.3.3 spec/audit_manager_spec.rb~
ixtlan-audit-0.3.2 spec/audit_manager_spec.rb~
ixtlan-audit-0.3.1 spec/audit_manager_spec.rb~
ixtlan-audit-0.3.0 spec/audit_manager_spec.rb~
ixtlan-audit-0.2.1 spec/audit_manager_spec.rb~
ixtlan-audit-0.2.0 spec/audit_manager_spec.rb~