lib/activerecord-tableless.rb
def load_schema!
         @columns_hash = tableless_options[:columns_hash].except(*ignored_columns)
         @columns_hash.each do |name, column|
           define_attribute(
               name,
               connection.lookup_cast_type_from_column(column),
               default: column.default,
               user_provided_default: false
           )
         end
      end
# Used internally by ActiveRecord 5.  This is the special hook that makes everything else work.
Used internally by ActiveRecord 5.  This is the special hook that makes everything else work.
Used internally by ActiveRecord 5 . This is the special hook that makes everything else work .
def load_schema!
         @columns_hash = tableless_options[:columns_hash].except(*ignored_columns)
         @columns_hash.each do |name, column|
           define_attribute(
               name,
               connection.lookup_cast_type_from_column(column),
               default: column.default,
               user_provided_default: false
           )
         end
      end
def load_schema! @columns_hash = tableless_options [ :columns_hash ] . except ( * ignored_columns ) @columns_hash . each do | name , column | define_attribute ( name , connection . lookup_cast_type_from_column ( column ) , default : column . default , user_provided_default : false ) end end
Used internally by ActiveRecord 5.
Used internally by ActiveRecord 5 .