Sha256: b61e46429a9dd4b6410ecf0e1ecef9cef5e6276399216508e25782b3ecfce530
Contents?: true
Size: 589 Bytes
Versions: 10
Compression:
Stored size: 589 Bytes
Contents
ActiveRecord.module_eval do class Base private def attributes_with_quotes(include_primary_key = true, include_readonly_attributes = true) quoted = {} @attributes.each_key do |name| if column = column_for_attribute(name) unless (!include_primary_key && column.primary) || (!include_readonly_attributes && self.class.readonly_attributes && self.class.readonly_attributes.include?(name.gsub(/\(.+/,""))) quoted[name] = quote_value(read_attribute(name), column) end end end quoted end end end
Version data entries
10 entries across 10 versions & 1 rubygems