Project
Ruby
Priority
Major
Type
Feature
Fix versions
No Fix versions
State
Open
Assignee
Dennis Ushakov
Subsystem
Rails. Code Insight
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Anna Bulenkova
    2 years ago (03 Apr 2009 17:40)
  • Updated by   Vadim Gurov
    8 months ago (18 May 2011 18:18)
  • Jira: RUBY-3548
    (history, comments)
 
RUBY-3548 Polymorphic associations support
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
class Asset < ActiveRecord::Base
    belongs_to :attachable, :polymorphic => true   #<----here
  end

  class Post < ActiveRecord::Base
    has_many :assets, :as => :attachable  
  end

Now :attachable is handled as unresolved association
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments