This project is archived and is in readonly mode.
ActiveResource: prefix attributes that are mass assigned are not readable and serializable.
-
rails
- State changed from new to open
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
rails
- State changed from open to stale
-
Pierre Lancien
I made a patch for this issue two months ago but I forgot to submit it...
I checked, the issue is still here in the latest Rails version. So here is my patch.Warning - one of the tests I added triggers the bug I previously mentioned and fixed here :
#6195 ActiveResource : clone fails when the resource has Fixnum or boolean attributes(I still don't know how to apply the "patch" tag here in lighthouse, so if someone reads this, please create the tag or tell me how to do it)
-
Matt Jones
- State changed from stale to open
- Importance changed from to Low
-
Evgeniy Dolzhenko
I'm +1 on this getting merged, currently in our ActiveResource models we have to do things like
class Foo < ActiveResource::Base
def bar_id@prefix_options[:bar_idend end
this patch would solve that (+ include the attributes in serialized version of resource)
