Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HistoryItem < ActiveRecord::Base
- cattr_accessor :types
- @@types = []
- validates_inclusion_of :historytype, :in => types
- def after_initialize
- puts "Called"
- puts self.historytype
- p @@types
- @@types << self.historytype
- end
- end
Add Comment
Please, Sign In to add comment