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

Remove attributes_protected_by_default reference #10690

Merged

Conversation

robertomiranda
Copy link
Contributor

Remove attributes_protected_by_default reference, since MassAssignmentSecurity was removed from ActiveModel f8c9a4d

@rafaelfranca
Copy link
Member

Should not this be keep for those who want to use the prottectd_attributes gem? Or at least be moved to it?

@guilleiguaran
Copy link
Member

👍 for move to protected_attributes gem, looks like the right place for it

@guilleiguaran
Copy link
Member

Note for mergers: please don't merge this until it's added to protected_attributes gem 😁

@carlosantoniodasilva
Copy link
Member

@guilleiguaran can we get this in? :)

@guilleiguaran
Copy link
Member

mmm, we will continue supporting protected_attributes after of release of Rails 4.1?

@carlosantoniodasilva
Copy link
Member

I think we will support it until 5.

@matthewd matthewd added this to the 5.0.0 milestone Jul 4, 2014
@robertomiranda
Copy link
Contributor Author

@carlosantoniodasilva @guilleiguaran can we get this merged considering that Rails 4.1 and 4.2 have been released?

@carlosantoniodasilva
Copy link
Member

We can, but I'd prefer to merge a single PR removing all references. Would you want to work on that or can I go ahead and do it? :)

@robertomiranda
Copy link
Contributor Author

@carlosantoniodasilva I would like too, but I'll leave you the decision on your hands 😄

@guilleiguaran
Copy link
Member

iirc, that's the unique place where we have references about attributes_protected_by_default, I removed all others during StrongParameters merge 😄

@guilleiguaran
Copy link
Member

ack confirms:

~/src/rails[master] % ack attributes_protected_by_default
activemodel/lib/active_model/secure_password.rb
82:        if respond_to?(:attributes_protected_by_default)
83:          def self.attributes_protected_by_default #:nodoc:

guilleiguaran added a commit that referenced this pull request Jan 9, 2015
…security

Remove attributes_protected_by_default reference
@guilleiguaran guilleiguaran merged commit 6907fcd into rails:master Jan 9, 2015
@robertomiranda
Copy link
Contributor Author

@guilleiguaran 👍

@carlosantoniodasilva
Copy link
Member

I meant protected_attributes in general 😄

$ ack protected_attributes
activemodel/lib/active_model/secure_password.rb
81:        # This code is necessary as long as the protected_attributes gem is supported.

activerecord/lib/active_record/core.rb
284:      # +options+ argument is only needed to make protected_attributes gem easier to hook.
560:    # This method is needed to make protected_attributes gem easier to hook.

I'll clean those ones. Thanks <3

carlosantoniodasilva added a commit to carlosantoniodasilva/rails that referenced this pull request Jan 10, 2015
@rafaelfranca rafaelfranca modified the milestones: 5.0.0 [temp], 5.0.0 Dec 30, 2015
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.

None yet

5 participants