app/models/effective/attachment.rb in effective_assets-1.9.4 vs app/models/effective/attachment.rb in effective_assets-1.9.5
- old
+ new
@@ -2,10 +2,10 @@
module Effective
class Attachment < ActiveRecord::Base
self.table_name = EffectiveAssets.attachments_table_name.to_s
- belongs_to :asset
+ belongs_to :asset, class_name: 'Effective::Asset'
belongs_to :attachable, :polymorphic => true
# structure do
# position :integer
# box :string, :default => 'assets' # This is essentially a category