I got the solutions and I would like to thank my PM(Mr.Rahul) for this
solution..

Here what we have done..

Instead of assigning scope by using with acts_as_list ,

like: #model file
class RelatedItem < ActiveRecord::Base
acts_as_list
belongs_to :relater, :polymorphic=>true

def scope_condition
“relater_id = #{relater_id} and relater_type = ’#{relater_type}’”
end

end

I hope it would be helpful for other Rails people also.!!!!!!! :)

-Ganesh K

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to