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 load_schema!
      super
      virtual_attributes_to_define.each do |name, (type, options)|
        if type.is_a?(Symbol)
          type = ActiveRecord::Type.lookup(type, **options.except(:uses))
        end
        define_virtual_attribute(name, type, **options.slice(:uses))
      end
    end
def load_schema! super virtual_attributes_to_define . each do | name , ( type , options ) | if type . is_a? ( Symbol ) type = ActiveRecord :: Type . lookup ( type , ** options . except ( :uses ) ) end define_virtual_attribute ( name , type , ** options . slice ( :uses ) ) end end
Compatibility method: `virtual_attribute` is a more accurate name
Compatibility method : ` virtual_attribute ` is a more accurate name