Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed few issues with update_attributes method #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stasl
Copy link

@stasl stasl commented Nov 29, 2011

update_attributes doesn't work for

  1. not valid records
  2. white listed att_accessible attributes

update_attributes doesn't work for
1) not valid records
2) white listed att_accessible attributes
@rockrep
Copy link
Owner

rockrep commented Nov 29, 2011

Not clear to me why you would want to save invalid records, or to soft-destroy an invalid record.

@stasl
Copy link
Author

stasl commented Nov 29, 2011

Sometimes it is possible to have conditional validation. Example on registration first,last names are optional but mandatory in edit profile. So it is really possible to have invalid records saved in db. Any reason not do delete invalid records.

On 29 Nov 2011, at 18:53, Michael [email protected] wrote:

Not clear to me why you would want to save invalid records, or to soft-destroy an invalid record.


Reply to this email directly or view it on GitHub:
#4 (comment)

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