Namespace
Module
- ActiveRecord::Aggregations
- ActiveRecord::Associations
- ActiveRecord::AttributeAssignment
- ActiveRecord::AttributeMethods
- ActiveRecord::Attributes
- ActiveRecord::AutosaveAssociation
- ActiveRecord::Batches
- ActiveRecord::Calculations
- ActiveRecord::Callbacks
- ActiveRecord::CollectionCacheKey
- ActiveRecord::ConnectionAdapters
- ActiveRecord::ConnectionHandling
- ActiveRecord::Core
- ActiveRecord::CounterCache
- ActiveRecord::DefineCallbacks
- ActiveRecord::DynamicMatchers
- ActiveRecord::Enum
- ActiveRecord::Explain
- ActiveRecord::FinderMethods
- ActiveRecord::Inheritance
- ActiveRecord::Integration
- ActiveRecord::LegacyYamlAdapter
- ActiveRecord::Locking
- ActiveRecord::ModelSchema
- ActiveRecord::NestedAttributes
- ActiveRecord::NoTouching
- ActiveRecord::Persistence
- ActiveRecord::QueryMethods
- ActiveRecord::Querying
- ActiveRecord::ReadonlyAttributes
- ActiveRecord::Reflection
- ActiveRecord::Sanitization
- ActiveRecord::Scoping
- ActiveRecord::SecureToken
- ActiveRecord::Serialization
- ActiveRecord::SpawnMethods
- ActiveRecord::Store
- ActiveRecord::Suppressor
- ActiveRecord::Tasks
- ActiveRecord::TestFixtures
- ActiveRecord::Timestamp
- ActiveRecord::TouchLater
- ActiveRecord::Transactions
- ActiveRecord::Translation
- ActiveRecord::Type
- ActiveRecord::VERSION
- ActiveRecord::Validations
Class
- ActiveRecord::ActiveRecordError
- ActiveRecord::AdapterNotFound
- ActiveRecord::AdapterNotSpecified
- ActiveRecord::AssociationRelation
- ActiveRecord::AssociationTypeMismatch
- ActiveRecord::AttributeAssignmentError
- ActiveRecord::Base
- ActiveRecord::ConfigurationError
- ActiveRecord::ConnectionNotEstablished
- ActiveRecord::ConnectionTimeoutError
- ActiveRecord::DangerousAttributeError
- ActiveRecord::Deadlocked
- ActiveRecord::EagerLoadPolymorphicError
- ActiveRecord::EnvironmentMismatchError
- ActiveRecord::ExclusiveConnectionTimeoutError
- ActiveRecord::FixtureSet
- ActiveRecord::ImmutableRelation
- ActiveRecord::InvalidForeignKey
- ActiveRecord::IrreversibleMigration
- ActiveRecord::IrreversibleOrderError
- ActiveRecord::LockWaitTimeout
- ActiveRecord::LogSubscriber
- ActiveRecord::Migration
- ActiveRecord::MismatchedForeignKey
- ActiveRecord::MultiparameterAssignmentErrors
- ActiveRecord::NoDatabaseError
- ActiveRecord::NotNullViolation
- ActiveRecord::PredicateBuilder
- ActiveRecord::PreparedStatementCacheExpired
- ActiveRecord::PreparedStatementInvalid
- ActiveRecord::QueryCache
- ActiveRecord::QueryCanceled
- ActiveRecord::RangeError
- ActiveRecord::ReadOnlyRecord
- ActiveRecord::RecordInvalid
- ActiveRecord::RecordNotDestroyed
- ActiveRecord::RecordNotFound
- ActiveRecord::RecordNotSaved
- ActiveRecord::RecordNotUnique
- ActiveRecord::Relation
- ActiveRecord::Result
- ActiveRecord::Rollback
- ActiveRecord::Schema
- ActiveRecord::SerializationFailure
- ActiveRecord::SerializationTypeMismatch
- ActiveRecord::StaleObjectError
- ActiveRecord::StatementInvalid
- ActiveRecord::StatementTimeout
- ActiveRecord::SubclassNotFound
- ActiveRecord::TransactionIsolationError
- ActiveRecord::TransactionRollbackError
- ActiveRecord::TypeConflictError
- ActiveRecord::UnknownAttributeError
- ActiveRecord::UnknownAttributeReference
- ActiveRecord::UnknownPrimaryKey
- ActiveRecord::ValueTooLong
- ActiveRecord::WrappedDatabaseException
Methods
Constants
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) |
UnknownAttributeError | = | ActiveModel::UnknownAttributeError |
Raised when unknown attributes are supplied via mass assignment.
|
Class Public methods
gem_version()
Returns the version of the currently loaded Active Record as a Gem::Version
📝 Source code
# File activerecord/lib/active_record/gem_version.rb, line 5
def self.gem_version
Gem::Version.new VERSION::STRING
end
🔎 See on GitHub
version()
Returns the version of the currently loaded ActiveRecord
as a Gem::Version
📝 Source code
# File activerecord/lib/active_record/version.rb, line 7
def self.version
gem_version
end
🔎 See on GitHub