| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Since Rubinius is relying on #instance_of? for its definition of #eql?
(http://git.io/MtmbbA) but ActiveSupport::Duration should behave like
is_a? it returns true with `Fixnum`.
Thus, for the moment, the last assertion is failing so we have to skip
this test.
|
|
|
|
|
|
|
| |
For the sake of backward-compatibility, we need to make #instance_of?
return true for Fixnum. On the other hand, the method should still
give true for ActiveSupport::Duration itself which was not the case
before.
|
|
|
|
|
| |
* Require either FIRST or LAST qualifier for "NULLS ..."
* Require whitespace before "NULLS ..."
|
|\
| |
| |
| | |
Fix postgresql adapter #columns_for_distinct trimming whitespace it shouldn't
|
|/
|
|
| |
Fixes #16623 introduced by https://github.com/rails/rails/commit/3d5a2019bcccc6fb01bee4811ca669f4383edb51
|
|\
| |
| | |
Fix example code in Active Job guide [ci skip]
|
|/ |
|
|\
| |
| | |
Correct AR::RecordNotFound in AJ guide rescue example [ci skip]
|
| | |
|
|\ \
| | |
| | | |
Use zero-padding for number_to_rounded_converter
|
| | | |
|
|\ \ \
| | | |
| | | | |
Documentation update for form_for options
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is true of the first param (url_for_options),
not of the second options param which is being
documented here.
[ci skip]
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
Docs for all the other form tag helpers in this
file already clarify this.
[ci skip]
|
|\ \ \
| | | |
| | | | |
Added enqueue_at support for QueAdapter in ActiveJob
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Added inline job runner for Que in test/support
* Updated QueAdapter to support enqueue_at
|
|\ \ \ \
| | | | |
| | | | | |
[ActiveJob] Add hook for test_framework
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
[ActionMailer] require activejob railtie
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
adding the exception RecordNotFound to UUID find #11957
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Don't calculate in-place changes twice
|
| | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | | |
Now that `changed_attributes` includes in place changes, we don't need
to override these methods in Active Record. Partially fixes the
performance regression caused by #16189
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Implemented enqueue_at for ActiveJob's Backburner adapter
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Active Job Guide: Example of config queue_name_prefix [ci skip]
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
features
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Don't fight against ourselves for the default log level
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If we want to always default to :debug, let's just do that.
At which point the production.rb entry can become an "uncomment to
change" instead.
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Replacing an each with reduce
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This way no new object allocation is taking place. Thanks @jeremy for
the suggestion!
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The functionality has not changed, but the code is more elegant by
using `reduce` instead of `each`.
This way no accumulator needs to be declared, no explicit return is
needed.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Define the Duration#instance_of? method
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Since Duration is extending from ProxyObject which extends itself from
BasicObject, the Duration object doesn't respond to the #instance_of?
method. Thus, the #method_missing hook get triggered, delegating the
method to its `value` attribute.
However, Rubinius' #eql? definition relies on #instance_of?, thus this
will equal to true with a Fixnum (since its `value` attribute is a
Fixnum) while it should not.
The previous behavior was wrong anyway, no matter the implementation.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Pass logging message through block.
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This follows the good practice listed on http://guides.rubyonrails.org/debugging_rails_applications.html#impact-of-logs-on-performance
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
Missing space. [CI SKIP]
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
See AR::Associations for greater detail in Nested Model Forms Guide [ci skip]
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \ |
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
[skip ci]
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Patch by @bcjordan
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
tomkadwill/added_has_and_belongs_to_many_scope_documentation
[ci skip] Added documentation for has_and_belongs_to_many scope parameter
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Revert "Add I18n support for `:placeholder` HTML option is passed to for...
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
fields"
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
ActionDispatch::RemoteIp accept IPAddr matches for trusted proxies
|
| | |/ / / / /
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Refactored IP address checking in ActionDispatch::RemoteIp to rely on
the IPAddr class instead of the unwieldly regular expression to match
IP addresses. This commit keeps the same api but allows users to pass
IPAddr objects to config.action_dispatch.trusted_proxies in addition
to passing strings and regular expressions.
Example:
# config/environments/production.rb
config.action_dispatch.trusted_proxies = IPAddr.new('4.8.15.0/16')
|