lib/extensions/ar_virtual.rb
# Compatibility method: `virtual_attribute` is a more accurate name
Compatibility method: `virtual_attribute` is a more accurate name
Compatibility method : ` virtual_attribute ` is a more accurate name
def define_virtual_attribute(name, cast_type, uses: nil, arel: nil)
      attribute_types[name] = cast_type
      define_virtual_include(name, uses) if uses
      define_virtual_arel(name, arel) if arel
    end
def define_virtual_attribute ( name , cast_type , uses : nil , arel : nil ) attribute_types [ name ] = cast_type define_virtual_include ( name , uses ) if uses define_virtual_arel ( name , arel ) if arel end
Compatibility method: `virtual_attribute` is a more accurate name
Compatibility method : ` virtual_attribute ` is a more accurate name
name
cast_type
uses
arel