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
Rename ActiveModel::Model to ActiveModel::BasicModel #5384
Conversation
|
|
|
@josevalim I've added back the initialize method as ActiveModel::MassAssignment. It's anemic for now but will grow as people find need for mass assignment security and the other ActiveRecord like methods ( |
|
MassAssignment is being re-evaluated for Rails 4. That said, let's put a |
|
@josevalim Is mass assignment still being re-evaluated for Rails 4? |
|
Yes, we will like move Rails to use something like strong_parameters. |
|
Ok, so strong_parameters in its current form depends on the model class calling sanitize_for_mass_assignment, which nothing in ActiveModel does today. An ActiveModel::MassAssignment module would be the best place to add that feature for use in non-ActiveRecord models. @josevalim Is there anything else pending the acceptance of this pull request? |
|
This doesn't merge cleanly any more, and will need a rebase. |
|
@steveklabnik I've rebased, it should merge cleanly now. |
|
GitHub still says no, though maybe it's caching is a bit out of date. I know @tenderlove was talking about some weirdness on Twitter today... |
|
@steveklabnik I've just merged the branch cleanly with the current master locally. Does GitHub agree now? |
|
It merges cleanly now but something is wrong, it says we have more than 250 commits to be merged. |
|
It's been merged, merging then other comments, and became a whole mess ._. |
|
@josevalim Every way I check it looks clean on my end. I think GitHub got confused. I can submit as a new pull request if you like but I'd hate for it to sit as long as this one has. |
|
You should do this: Where SOME_SHA is the sha of the commit you want. Or commits. I forget if there are multiple. I'd be happy to help walk you through this if you're unsure about it. Basically just resetting EVERYTHING to make sure it's current with master and making only the changes on your branch. GitHub should automatically update the pull request. |
This module provides the sets of features required to support the ActiveModel API and no more. Its naming is meant to be reminiscent of Ruby's Object and BasicObject.
|
Rebasing again seems to have fixed GitHub's view of the pull request. But for the record, the tree was clean. |
|
|
|
@cgriego Could you please rebase it? |
|
I'm fine with the rename. But I don't like the idea of the |
This module provides the sets of features required to support the ActiveModel API and no more. Its naming is meant to be reminiscent of Ruby's Object and BasicObject.