| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
There's no need to create two extra hashes with options.merge(another_hash),
with the goal of setting only one value, so lets just set it.
Also refactor validates_each to use _merge_attributes, like other
validates_* helpers do.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also simplify I18n logic for Array#to_sentence, doing only one lookup
for all keys and using merge!, instead of one lookup for each option key.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Setup each test with default ActiveRecord timezone settings to ensure ea...
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
test starts with a clean slate.
Fixes #6867.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
AS::Callbacks: deprecate monkey patch code
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Deprecate usage of filter object with #before and #after
methods as around callback
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
:update_details method no more exists on @lookup_context
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | | |
the method has gone in this commit: 119e9e2dafb0cdc5b85613b730333679aef534af
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Async actionmailer
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Credit goes to *Aaron Patterson* (tenderlove)
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Credit goes to *Nicolás Sanguinetti* (foca) for this suggestion
|
| |/ / / / |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Any ActionMailer class can be set to render and delier messages using
the new Rails Queue.
Some of this work was borrowed (with permission) from Nick Plante's
(zapnap) reqsue_mailer gem.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Try to use more destructive methods on *args when applicable, to avoid
creating new objects.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
exists?(false) returns false
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`FinderMethods#exists?` finder method now returns *false* with the *false* argument
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fix build issue with postgresql.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Missing require breaks Time.=== when selectively loading ActiveSupport core_exts in 3.2.4+
|
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If you selectively require core_exts (e.g., require
'active_support/core_ext/string'), it is possible for
'active_support/core_ext/time/calculations' to be required when
`ActiveSupport::TimeWithZone` is not available. If this happens, the next call
to Time.=== will fail with a NameError.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Refactor and improve database tasks.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
consistency.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
consistency.
|
| | | | | | |
|
|\| | | | |
| | | | | |
| | | | | | |
add :nodoc: to internal implementations [ci skip]
|
|/ / / / / |
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
These _define class methods don't need to be exposed to objects that
extend ActiveModel::Callbacks.
Also use merge! options to avoid the creation of an extra hash.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This commit needs to be reverted because it introduces difficulties when
using sqlite3 in development and other databases in production. This
happens because when you create time column in sqlite3, it's dumped as
datetime in schema.rb file.
This reverts commit 57d534ee9e441d078fcc161c0c78ebaa5aacd736, reversing
changes made to 20f049fb50daee0c5e5a69b55b529af5737e8e3f.
Conflicts:
activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
Refactor and improve a bit number helpers code.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Use a different and very specific locale for testing currency negative
format, and an empty store for currency defaults.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
They also make more sense here since all the related logic with I18n is
handled by AS::NumberHelper, and not by AV anymore.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Just make use of the returning exception from assert_raise, instead of
calling the method again with a rescue clause to test the saved
exception number.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
ActiveSupport::NumberHelper does not make use of :raise, so there's no
need to propagate it down.
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Correct line numbers for reader and writer methods in AS configurable
The line number for the reader method is off by one due to the local variable line being reassigned to the writer's line.
This commit would provide correct line numbers for backtraces and method introspection (for example, method(:reader).source_location).
|
|/ / / / |
|
|\ \ \ \
| |_|_|/
|/| | | |
Stop assuming strings for grouped calculations
|