Trying to deploy it.
class PageImage < Upload
belongs_to :page, :class_name => "Page", :foreign_key => :owner_id
end
class Upload < ActiveRecord::Base
belongs_to :uploadable, :polymorphic => true
end
Get:
undefined method `belongs_to' for PageImage:Class
This is only when try to load pages that call the class.
Any ideas?