Sha256: de9b1d9702075a1d2bace15fb4b28b7a351a52edf5b5d8c45040593a1a0021fe
Contents?: true
Size: 541 Bytes
Versions: 3
Compression:
Stored size: 541 Bytes
Contents
module ActiveRecord #:nodoc: class Base #:nodoc: class << self private def instantiate_with_updateable_views_inheritance_support(attributes, column_types = {}) object = instantiate_without_updateable_views_inheritance_support(attributes, column_types = {}) if object.class.name == self.name object else object.class.find(attributes.with_indifferent_access[:id]) end end alias_method_chain :instantiate, :updateable_views_inheritance_support end end end
Version data entries
3 entries across 3 versions & 1 rubygems