Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Armor < ActiveRecord::Base
- attr_accessible :back_id, :character_id, :chest_id, :feet_id, :hand_id, :head_id, :legs_id, :shoulder_id, :waist_id
- belongs_to :character
- belongs_to :back, :class_name => 'ArmorItem'
- belongs_to :chest, :class_name => 'ArmorItem'
- belongs_to :feet, :class_name => 'ArmorItem'
- belongs_to :hand, :class_name => 'ArmorItem'
- belongs_to :head, :class_name => 'ArmorItem'
- belongs_to :legs, :class_name => 'ArmorItem'
- belongs_to :shoulder, :class_name => 'ArmorItem'
- belongs_to :waist, :class_name => 'ArmorItem'
- end
Add Comment
Please, Sign In to add comment