| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Proc.new will pick up the passed in block, but since it's a default
param, it won't get evaluated unless someone doesn't pass in an app. It
will raise an exception if no block is provided.
|
|/ / / / / / |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Remove XML Serialization from core
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This includes the following classes:
- ActiveModel::Serializers::Xml
- ActiveRecord::Serialization::XmlSerializer
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Discussion https://github.com/JuanitoFatas/fast-ruby/pull/59#issuecomment-128513763
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
this is another place that we should stop directly accessing the env
hash and let the request object take care of that for us
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
in_batches using ids
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`in_batches` yields Relation objects if a block is given, otherwise it
returns an instance of `BatchEnumerator`. The existing `find_each` and
`find_in_batches` methods work with batches of records. The new API
allows working with relation batches as well.
Examples:
Person.in_batches.each_record(&:party_all_night!)
Person.in_batches.update_all(awesome: true)
Person.in_batches.delete_all
Person.in_batches.map do |relation|
relation.delete_all
sleep 10 # Throttles the delete queries
end
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix doc typo
|
|/ / / / / / |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | |
| | | | | | |
lsylvester/only-invoke-mattr_accessor-default-block-once
Prevent the default block for mattr_accessor being called multiple times
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
cause issues if it is not idempotent
|
|\ \ \ \ \
| | | | | |
| | | | | | |
[ci skip] Remove `identity.active_record`
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | | |
This is removed by this commit
cf: https://github.com/rails/rails/pull/5261
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Speed up code and avoid unnecessary MatchData objects
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
do not add common ports to HTTP_HOST
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | | |
- webservers do not do it
- it makes redirect urls ugly when request.host is used for redirection
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Added bin/update script to update application automatically
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
use system!
fix changelog
use bundle check first and use rake
use system instead system! for bundle check
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Fix documentation on ActionDispatch::Request
|
|/ / / / / |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
again, we want to hide the contents of `env` from the implementation.
Allocate a request object to access the contents of env, but save
allocations due to string literal allocations when accessing the env
hash.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
hide the env key in the request object so that other code doesn't need
to know.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
ExceptionWrapper only cares about the backtrace cleaner, so lets just
pass the cleaner to the wrapper. It does not need to know that env
exists or what key the backtrace cleaner is stored in
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Implement `serve` on the middleware. Nothing can be placed between the
instance of FileHandler and Static because Static instantiates an
instance of FileHandler. IOW there is no reason to implement the `call`
API in this case.
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Use memoization for collection associations ids reader
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #21082
remove extra space
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | | |
Fix STATS_DIRECTORIES warning by only loading statistics.rake once
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When running rake stats from inside an engine,
the engine's Rakefile attempts to reload
statistics.rake after the test app loads it, which
results in STATS_DIRECTORIES being redefined and
an annoying warning. This patch skips loading
statistics.rake from tasks.rb if rake's current
scope isn't empty, i.e. if we are running from
inside an engine and not the test app dir or a
normal app.
Fixes #20510.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
y-yagi/loading_fixtures_in_engine_integration_tests
set the correct path to `ActionDispatch::IntegrationTest.fixture_path`
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
`ActionDispatch::IntegrationTest.fixture_path` set by `test_help.rb`, but if the engine,
path under the dummy is will be set, fixtures under test was not loaded.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Remove duplicated `Array#to_param`
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
`Array#to_param` is defind in active_support/core_ext/object/to_query.rb,
so we can call `to_param` if value is_a Array.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Fix Encoding::UndefinedConversionError with multibyte UTF-8 filename containing "%" character
|
| | | | | | | | | |
|
| | |_|_|_|/ / /
| |/| | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Fix test session fetch
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
allow testing controllers that use session#fetch with a default value.
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
Better docs for ActiveRecord::Migration#table_name_options
|
|/ / / / / / / / / |
|
|\ \ \ \ \ \ \ \ \
| |/ / / / / / / /
|/| | | | | | | | |
Small fix [ci skip]
|
|/ / / / / / / / |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
we don't recycle requests anymore, so we shouldn't need to recycle
cookie jars
|