Sha256: 383394ca60bb3621ef94f6be8dfdec6650c83c086797628c3bed92eacab51a11

Contents?: true

Size: 390 Bytes

Versions: 8

Compression:

Stored size: 390 Bytes

Contents

module ActiveRecord
  module Dirty
    private
      def attribute_will_change!(attr)
        val = changed_attributes[attr] = clone_attribute_value(:read_attribute, attr)
        if Array === val && !(Array === @attributes[attr])
          send(attr) unless @attributes_cache.has_key?(attr)
          @attributes[attr] = @attributes_cache[attr]
        end
        val
      end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ar_jdbc_pg_array-0.1.1-java lib/ar_jdbc_pg_array/schema_fix_will_change.rb
ar_jdbc_pg_array-0.1.0-java lib/ar_jdbc_pg_array/schema_fix_will_change.rb
ar_pg_array-0.10.2 lib/ar_pg_array/schema_fix_will_change.rb
ar_pg_array-0.11.2 lib/ar_pg_array/schema_fix_will_change.rb
ar_pg_array-0.11.1 lib/ar_pg_array/schema_fix_will_change.rb
ar_pg_array-0.11.0 lib/ar_pg_array/schema_fix_will_change.rb
ar_pg_array-0.10.1 lib/ar_pg_array/schema_fix_will_change.rb
ar_pg_array-0.9.13 lib/ar_pg_array/schema_fix_will_change.rb