Skip to content

Conversation

nicolasblanco
Copy link

When using global whitelisting, AR::SS does not work at all (depending of your RDBMS you may get an ActiveRecord::StatementInvalid exception because of NULL constraint on session_id).

This problem exists in Rails 2, Rails 3 and Rails 3.1.

But as Rails 3.1 got a new feature to easily enable global whitelisting (config.active_record.whitelist_attributes = true), I think we should fix AR::SS to work by default when using this feature.

josevalim added a commit that referenced this pull request May 10, 2011
Puts ActiveRecord::SessionStore attributes in white list, fixes #483
@josevalim josevalim merged commit fa8b0f4 into rails:master May 10, 2011
matthewd pushed a commit that referenced this pull request Apr 24, 2018
Support INSERT with multiple values (v2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants