@@ -254,6 +254,21 @@ class Tag < ActiveRecord::Base
254254class Section < ActiveRecord ::Base
255255end
256256
257+ class HairCut < ActiveRecord ::Base
258+ end
259+
260+ class Property < ActiveRecord ::Base
261+ end
262+
263+ class Customer < ActiveRecord ::Base
264+ end
265+
266+ class BadlyNamedAttributes < ActiveRecord ::Base
267+ end
268+
269+ class Cat < ActiveRecord ::Base
270+ end
271+
257272class IsoCurrency < ActiveRecord ::Base
258273 self . primary_key = :code
259274 # has_many :expense_entries, foreign_key: 'currency_code'
@@ -896,8 +911,8 @@ def self.verify_key(key, context = nil)
896911class PreferencesResource < JSONAPI ::Resource
897912 attribute :advanced_mode
898913
899- has_one :author , foreign_key : :person_id , class_name : 'Person'
900- has_many :friends , class_name : 'Person'
914+ has_one :author , foreign_key : :person_id
915+ has_many :friends
901916
902917 def self . find_by_key ( key , options = { } )
903918 new ( Preferences . first )
@@ -961,7 +976,7 @@ class PostResource < JSONAPI::Resource
961976 attribute :body
962977 attribute :subject
963978
964- has_one :writer , foreign_key : 'author_id'
979+ has_one :writer , foreign_key : 'author_id' , class_name : 'Writer'
965980 has_one :section
966981 has_many :comments , acts_as_set : false
967982
0 commit comments