blob: 9a5bb1f24df313036aad36704ca8a7cd61e44bc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class Oui < ActiveRecord::Base
attr_accessible :value
validates_presence_of :manufacturer
validates_presence_of :value
belongs_to :manufacturer
# State Machine stuff
default_scope where(:state => 'active')
state_machine :initial => :active do
end
def to_s
value
end
end
|