Sha256: 0a6ea53e4c3b035e9a00d7dc6690c6ede9610300f409bfe734f4d6ea4a7ae3c7

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

adjust_cached_types = lambda do |atcbd|
  atcbd << /_array$/
  def atcbd.include?(val)
    any?{|type| type === val}
  end
end
if ActiveRecord::VERSION::MAJOR < 3
  adjust_cached_types.call(ActiveRecord::AttributeMethods::ATTRIBUTE_TYPES_CACHED_BY_DEFAULT)
else
  adjust_cached_types.call(ActiveRecord::AttributeMethods::Read::ATTRIBUTE_TYPES_CACHED_BY_DEFAULT)
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
ar_pg_array-0.9.13 lib/ar_pg_array/schema_cachable.rb
ar_pg_array-0.9.13 lib/ar_pg_array/schema_cacheable.rb