Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6004: diff

File diff, 1.0 kB (added by anonymous, 4 years ago)

diff with this patch

  • vendor/rails/activerecord/lib/active_record/base.rb

    old new  
    19681968          attributes.reject { |key, value| !self.class.accessible_attributes.include?(key.gsub(/\(.+/, "").intern) || attributes_protected_by_default.include?(key.gsub(/\(.+/, "")) } 
    19691969        elsif self.class.accessible_attributes.nil? 
    19701970          attributes.reject { |key, value| self.class.protected_attributes.include?(key.gsub(/\(.+/,"").intern) || attributes_protected_by_default.include?(key.gsub(/\(.+/, "")) } 
     1971        else 
     1972          attributes.reject { |key, value| self.class.protected_attributes.include?(key.gsub(/\(.+/,"").intern) || !self.class.accessible_attributes.include?(key.gsub(/\(.+/, "").intern) || attributes_protected_by_default.include?(key.gsub(/\(.+/, "")) } 
    19711973        end 
    19721974      end 
    19731975