Ticket #6004: diff
| File diff, 1.0 kB (added by anonymous, 4 years ago) |
|---|
-
vendor/rails/activerecord/lib/active_record/base.rb
old new 1968 1968 attributes.reject { |key, value| !self.class.accessible_attributes.include?(key.gsub(/\(.+/, "").intern) || attributes_protected_by_default.include?(key.gsub(/\(.+/, "")) } 1969 1969 elsif self.class.accessible_attributes.nil? 1970 1970 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(/\(.+/, "")) } 1971 1973 end 1972 1974 end 1973 1975