Sha256: 6bd94505d169decd339e407f5667c8f98ce15ea3bedf9b414bf7accffe024c4e

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

class TerminalProfileProvider < ActiveRecord::Base

  mount_uploader :icon, IconUploader

  belongs_to :provider
  belongs_to :terminal_profile, :inverse_of => :terminal_profile_providers

  validates :provider_id, :uniqueness => {:scope => :terminal_profile_id}
  validates :provider, :presence => true
  validates :terminal_profile, :presence => true
end

Version data entries

4 entries across 4 versions & 1 rubygems

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