Sha256: eea5e5acd789b70615938e9a73c01b35fe11acf9d2860b11df18a8a3e64c939c

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

class TerminalProfilePromotion < ActiveRecord::Base
  include Redis::Objects::RMap

  value :timestamp, :global => true, :marshal => true

  belongs_to :terminal_profile
  belongs_to :provider

  validates :provider, :presence => true

  after_save do
    self.class.timestamp = updated_at
  end

  after_destroy do
    self.class.timestamp = DateTime.now
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
smartkiosk-server-0.9.3 app/models/terminal_profile_promotion.rb
smartkiosk-server-0.9.2 app/models/terminal_profile_promotion.rb
smartkiosk-server-0.9.1 app/models/terminal_profile_promotion.rb
smartkiosk-server-0.9.0 app/models/terminal_profile_promotion.rb