Namespace
Methods
E
G
T
V
Constants
Point = Struct.new(:x, :y)
 
UnknownAttributeError = ActiveModel::UnknownAttributeError
 

Raised when unknown attributes are supplied via mass assignment.

ADAPTERS_TASKS = { mysql2: :mysql_tasks, postgresql: :postgresql_tasks, sqlite3: :sqlite_tasks }
 
Class Public methods
eager_load!()
# File activerecord/lib/active_record.rb, line 164
def self.eager_load!
  super
  ActiveRecord::Locking.eager_load!
  ActiveRecord::Scoping.eager_load!
  ActiveRecord::Associations.eager_load!
  ActiveRecord::AttributeMethods.eager_load!
  ActiveRecord::ConnectionAdapters.eager_load!
end
gem_version()

Returns the version of the currently loaded Active Record as a Gem::Version

# File activerecord/lib/active_record/gem_version.rb, line 3
def self.gem_version
  Gem::Version.new VERSION::STRING
end
version()

Returns the version of the currently loaded ActiveRecord as a Gem::Version

# File activerecord/lib/active_record/version.rb, line 5
def self.version
  gem_version
end
Instance Public methods
test_crazy_object()
# File activerecord/test/cases/quoting_test.rb, line 127
def test_crazy_object
  crazy = Object.new
  e = assert_raises(TypeError) do
    @quoter.quote(crazy, nil)
  end
  assert_equal "can't quote Object", e.message
end
test_quote_as_mb_chars_no_column()
# File activerecord/test/cases/quoting_test.rb, line 139
def test_quote_as_mb_chars_no_column
  string = ActiveSupport::Multibyte::Chars.new('lo\l')
  assert_equal "'lo\\\\l'", @quoter.quote(string, nil)
end
test_quote_duration()
# File activerecord/test/cases/quoting_test.rb, line 148
def test_quote_duration
  assert_equal "1800", @quoter.quote(30.minutes)
end
test_quote_string_no_column()
# File activerecord/test/cases/quoting_test.rb, line 135
def test_quote_string_no_column
  assert_equal "'lo\\\\l'", @quoter.quote('lo\l', nil)
end
test_string_with_crazy_column()
# File activerecord/test/cases/quoting_test.rb, line 144
def test_string_with_crazy_column
  assert_equal "'lo\\\\l'", @quoter.quote('lo\l')
end