diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-03-23 12:34:47 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-03-25 15:47:16 -0300 |
commit | d06a754fdd81a17206c0c404d7d1361200a84b17 (patch) | |
tree | 1482e21d7c2482cc4d21449eebda8b4b0e1e6033 /activerecord/lib | |
parent | fc2e25734a175641595db9612d3fb5371cb8aa2c (diff) | |
download | rails-d06a754fdd81a17206c0c404d7d1361200a84b17.tar.gz rails-d06a754fdd81a17206c0c404d7d1361200a84b17.tar.bz2 rails-d06a754fdd81a17206c0c404d7d1361200a84b17.zip |
Remove unused attributes_with_quotes method.
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 3d4172f368..367b4ce217 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -2054,26 +2054,6 @@ module ActiveRecord #:nodoc: end # Returns a copy of the attributes hash where all the values have been safely quoted for use in - # an SQL statement. - def attributes_with_quotes(include_primary_key = true, include_readonly_attributes = true, attribute_names = @attributes.keys) - quoted = {} - connection = self.class.connection - attribute_names.each do |name| - if (column = column_for_attribute(name)) && (include_primary_key || !column.primary) - value = read_attribute(name) - - # We need explicit to_yaml because quote() does not properly convert Time/Date fields to YAML. - if value && self.class.serialized_attributes.has_key?(name) && (value.acts_like?(:date) || value.acts_like?(:time)) - value = value.to_yaml - end - - quoted[name] = connection.quote(value, column) - end - end - include_readonly_attributes ? quoted : remove_readonly_attributes(quoted) - end - - # Returns a copy of the attributes hash where all the values have been safely quoted for use in # an Arel insert/update method. def arel_attributes_values(include_primary_key = true, include_readonly_attributes = true, attribute_names = @attributes.keys) attrs = {} |