summaryrefslogtreecommitdiff
path: root/app/models/softkey_function.rb
blob: 976827deba3e92e74d567b9fdaa3885596876693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class SoftkeyFunction < ActiveRecord::Base
  validates_presence_of :name

  validates_uniqueness_of :name

  acts_as_list

  default_scope order(:position)

  def to_s
    self.name
  end
end