| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
[ci skip] ActionRecord CHANGELOG docs fixes
|
| | |
|
|\ \
| |/
|/| |
Make delegation work with the reserved words passed to `:to`
|
|/
|
|
| |
Fixes #16956.
|
|\
| |
| |
| |
| |
| |
| | |
Specify dummy app's db migrate path in plugin's test_helper.rb
Conflicts:
railties/CHANGELOG.md
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If code is not eager loaded constants are loaded on demand. Constant
autoloading is not thread-safe, so if eager loading is not enabled
multi-threading should not be allowed.
This showed up in certain Capybara scenarios: Most Capybara drivers
other than Rack::Test need a web server. In particular, drivers for
JavaScript support. Capybara launches WEBrick in its own thread for
those but that per se is fine, because the spec thread and the server
thread are coordinated.
Problem comes if the page being served in the spec makes Ajax calls.
Those may hit WEBrick in parallel, and since WEBrick is multi-threaded
and allow_concurrency? returns true in the test environment before
this patch, threads are spawned to serve those parallel requests. On
the other hand, since eager_load is false by default in the test
environment, constants are not preloaded.
So the suite is autoloading constants in a multi-threaded set. That's
a receipt for paracetamol. The symptom is random obscure errors whose
messages point somehow to constant autoloading.
As a consequence of this fix for allow_concurrency? WEBrick in
Capybara scenarios no longer runs in multi-threaded mode.
Fixes #15089.
|
|\ \
| | |
| | | |
Use #inject over #sum to build PG create DB statement
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
While investigating #16951 I found that another library's monkey-patching of
`Enumerable` was causing the test migrations helper to break when trying to
build the `CREATE DATABASE` statement. The prior approach used `#sum` to build
the string from the options hash.
As the code that combines the options to build the database statement is not
user-facing, using `#inject` here instead will remove the only place where the
database creation/migration code is dependent on ActiveSupport's monkey-patching
of `Enumerable`.
|
|\ \
| | |
| | | |
[ci skip] ActionView and ActionMailerCHANGELOG docs fixes
|
| | | |
|
|\| |
| | |
| | | |
[ci skip] ActiveModel CHANGELOG docs fixes
|
| | | |
|
|\| |
| | |
| | | |
Grammar correction in ActiveSupport CHANGELOG [ci skip]
|
| | | |
|
|\| |
| | |
| | | |
[ci skip] ActiveSupport CHANGELOG fixes
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
1. spacing issues
2. spelling correction
3. grammar correction
4. Add missing docs
|
|\ \ \
| | | |
| | | | |
Added Responders docs, made Web Console docs more consistent. [ci skip]
|
| | | | |
|
|\ \ \ \
| | |/ /
| |/| | |
[ci skip] AJ docs fixes
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | | |
1. Indentation
2. Spaces issues
3. Spelling correction
4. Grammar correction
5. Add #:nodoc: to all internal classes
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Don't autosave unchanged has_one through records
Conflicts:
activerecord/CHANGELOG.md
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Allow YAML serialization when using TZ aware attributes
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Added method `#eql?` to `ActiveSupport::Duration`, in addition to `#==`.
Conflicts:
activesupport/CHANGELOG.md
activesupport/lib/active_support/duration.rb
activesupport/test/core_ext/duration_test.rb
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Currently, the following returns `false`, contrary to expectation:
1.minute.eql?(1.minute)
Adding method `#eql?` will make this behave like expected. Method `#eql?` is
just a bit stricter than `#==`, as it checks whether the argument is also a
uration. Their parts may be different though.
1.minute.eql?(60.seconds) # => true
1.minute.eql?(60) # => false
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | |
| | | | | |
| | | | | | |
kongregate/fix-activerecord-deprecated_finders-find-symbol
ActiveRecord deprecated finders are broken in 4.2
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Maintain compatibility for:
* ActiveRecord::Base#find(:all)
* ActiveRecord::Base#find(:first)
* ActiveRecord::Base#find(:last)
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Ruby 2.2 is near to be released so we should support it properly
|
| | | | | | |
|
| | | | | | |
|
| |_|_|/ /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Closes #16907.
[Matthew Draper & Yves Senn]
|
|\ \ \ \ \
| | | | | |
| | | | | | |
[guides] 4.2 release notes: added technical details for Adequate Record
|
| |/ / / / |
|
|\ \ \ \ \
| |/ / / /
|/| | | |
| | | | | |
Improve environment config templates consistency
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
* Fix long lines;
* Use simple quotes for string literals when interpolation is not used.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Explain ERB space removal.
[ci skip]
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Use dynamic path for dummy app location in plugin's test_helper.rb
|
| | | | | | |
|
| |_|_|_|/
|/| | | |
| | | | |
| | | | | |
[ci skip]
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
[ci skip] Fix typo `equals to` --> `equal to`
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Ruby 2.2 knows this, and no longer matches it with [[:space:]], so it's
not a good candidate for testing String#squish.
|
|\ \ \ \
| | | | |
| | | | | |
add implementation of respond_to? for ActiveSupport::Duration
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Add test jobs task
|