| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
fixing typo in active record from method
|
|/ / / / / / |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Since composed_of was removed in 051747449e7afc817c599e4135bc629d4de064eb,
these tests were working "by mistake", due to the matching "address"
string in the error message, but with a different error message than the
expected multiparameter assignment error.
Since "address" is not an attribute from Customer anymore, the error was
"undefined method klass for nil", where nil was supposed to be the
column object.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
All other multiparameter assignment tests are in the same file, so it
makes sense to have all of them here.
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Skip test_setting_time_attribute for Oracle database
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | | |
does not have TIME data type.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Speed up Hash#transform_keys using Hash#each_key
|
|/ / / / / /
| | | | | |
| | | | | | |
See https://gist.github.com/3007749 for justification
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
fix bug in limit of enum columns of mysql
Closes #6432
|
|/ / / / / / |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Fixes #6825, adds tests covering cases and error possibilities
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
SQLite3 driver to correctly generate a time column instead of datetime
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Pull request #6856, merged in 52f6e47682003c83b0466bf5e140ee302498a226.
[ci skip]
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix wrong testcase for db:test:prepare, and wrong environment in AR rake task.
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Add polymorphic option to model generator
For instance,
$ rails g model Product supplier:references{polymorphic}
generate model with `belongs_to :supplier, polymorphic: true` association and appropriate migration.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
For instance,
$ rails g model Product supplier:references{polymorphic}
generate model with `belongs_to :supplier, polymorphic: true` association and appropriate migration.
Also fix model_generator_test.rb#L196 and #L201
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
Address test_basic_model test error with Oracle enhanced adapter
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | | |
which ids start from 1000 as a default.
|
|\ \ \ \ \ \
| |_|_|_|/ /
|/| | | | | |
Guide update for Async ActionMailer
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Since we're dealing with a new array instance, it's safe to use map! and
we avoid an extra array object.
Also remove the symbolize_keys! from AttributeMethodMatcher, since it's
an internal class that always receives symbol keys from the prefix/suffix
methods implementations.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Since we're not directly requiring the reverse_merge extension, we can
avoid another hash creation by using default_hash.merge! instead.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|