Sha256: 66adef1beabf5c0d14228e39fb9fbf40c16efaeaef1747a94c748272805fccd8

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

class TerminalProfileProviderGroup < ActiveRecord::Base

  self.table_name = 'term_prof_provider_groups'

  mount_uploader :icon, IconUploader

  belongs_to :provider_group
  belongs_to :terminal_profile, :inverse_of => :terminal_profile_provider_groups

  validates :provider_group_id, :uniqueness => {:scope => :terminal_profile_id}
  validates :provider_group, :presence => true
  validates :terminal_profile, :presence => true

  delegate :title, :to => :terminal_profile

  def terminal_profile_providers
    terminal_profile.terminal_profile_providers(provider_group_id)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smartkiosk-server-0.9.0 app/models/terminal_profile_provider_group.rb