File: arcontact.rb

package info (click to toggle)
ruby-activemodel-serializers-xml 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 284 kB
  • sloc: ruby: 1,772; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
class ARContact < ActiveRecord::Base
  include ActiveRecord::Serialization

  belongs_to :alternative, :class_name => 'ARContact'
  serialize :preferences
end

class ContactSti < ActiveRecord::Base
  def type; 'ContactSti' end
end