Hello, I was unable to find the commit related to removing attribute filtering in Rails 2.1. I''m interested in the reasoning as to why this was removed. Can anyone provide any insight? Thanks, Jonathan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jonathan Wallace wrote:> Hello, > I was unable to find the commit related to removing attribute > filtering in Rails 2.1. I''m interested in the reasoning as to why > this was removed. Can anyone provide any insight? > Thanks, > Jonathanhey there Jonathan, what do you mean by :attribute_filtering? All I can think of is the log_param filtering. http://api.rubyonrails.org/classes/ActionController/Base.html#M000837 but that still seems to work. "filter_parameter_logging :password" -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 21 Jun 2008, at 12:07, Jonathan Wallace wrote:> > Hello, > I was unable to find the commit related to removing attribute > filtering in Rails 2.1. I''m interested in the reasoning as to why > this was removed. Can anyone provide any insight?Do you mean the ability to do some_ar_object.attributes :except => ''blah'' ? If so, it''s because ActiveSupport adds except/slice to hash so having it separately in #attributes was just duplication (and has done for a while) so instead of the :except option you can do some_ar_object.attributes.except ''blah'' Fred> > Thanks, > Jonathan > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---