This project is archived and is in readonly mode.
MassAssignment problem with ActiveRecord 2.3.9
-
Jeff Kreeftmeijer
- State changed from new to needs-more-info
- Tag set to 2.3.9, activerecord
- Importance changed from to Low
Can you please give us a code sample we can run that demonstrates the problem you're having? I'll put this one on need-more-info for now. :)
-
Astrid Kurbin
The model:
class Tag < ActiveRecord::Base
endconnection:
ActiveRecord::Base.establish_connection(
:adapter => 'sqlite3', :database => 'test.sqlite3.db' )call:
Tag.create(:description => "test", :typpe => "some")if using ActiveRecord 2.3.9
Tag.find(:all) gives me the entry with :description => nil and typpe => nilIf using ActiveRecord 2.3.5
Tag.find(:all) gives me the entry with :description => "test" and typpe => "some"so you only need the Model and the create method to try out the behavior
I hope this helps
-
Santiago Pastorino
- State changed from needs-more-info to open
- Tag changed from 2.3.9, activerecord to 239, activerecord
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.
-
Santiago Pastorino
- State changed from open to stale