juozasgaigalas (at gmail)
Not a member
juozasgaigalas (at gmail)'s latest activity
Wednesday, November 25 2009
2435
"Polymorphic has_one and has_many should set proper polymorphic_type in case ...
was updated
in Ruby on Rails
-
juozasgaigalas (at gmail) commented at 9:53 AMSame code as above but with formatting.
Votables
class Poll < ActiveRecord::Base has_many :possibles end class RankingPoll < Poll has_many :votes, :as =>... -
- Tag set to belongs_to, polymorphic_association, sti
- Assigned user cleared.
I have a case where I think this patch makes sense.
Votables:
class Poll < ActiveRecord::Base
has_many :possibles endclass RankingPoll < Poll
has_many :votes, ...