frozen_string_literal: true

Constants

UnknownAttributeError = ActiveModel::UnknownAttributeError

MigrationProxy = Struct.new(:name, :version, :filename, :scope) do def initialize(name, version, filename, scope) super @migration = nil end def basename File.basename(filename) end def mtime File.mtime filename end delegate :migrate, :announce, :write, :disable_ddl_transaction, to: :migration private def migration @migration ||= load_migration end def load_migration require(File.expand_path(filename)) name.constantize.new(name, version) end end

Point = Struct.new(:x, :y)

Attributes

Show files where this module is defined (234 files)
Register or log in to add new notes.
April 3, 2009
13 thanks

The docs are in AR::Base

The docs you’re looking for are in ActiveRecord::Base