| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ / / / / / / |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This reverts commit abf8de85519141496a6773310964ec03f6106f3f.
We should take a deeper look to those cases flat_map doesn't do deep
flattening.
irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten
=> [1, 3, 1, 2]
irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i}
=> [[1, 3], [1, 2]]
|
| | | | | | | |
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Disable Rack::Cache by default
|
| | | | | | | |
|
| | | | | | | |
|
|/ / / / / / |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
bare is true.
We need to change this since coffee-rails loads ActionView that loads
core_ext/array/access.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This was added in Rails 4 and we don't need changelog entries to
behavior changes
[ci skip]
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
ActionController::Parameters#permit! is recursive
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Sine page caching was remove from the core we don't have the
page_cache_directory anymore
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Extract AP Page and Action caching from Rails
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
skip]
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Updated comments for [ci skip]
|
|/ / / / / / /
| | | | | | |
| | | | | | | |
- Changed the comments documentation for the update_column(s) methods to add a little bit of clarity
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Move the CacheHelper#fragment_name_with_digest to be public
|
| | | | | | | | |
|
| |\ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| |_|/ / / / / /
|/| | | | | | | |
Count returns 0 without querying if parent is not saved
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Patches `CollectionAssociation#count` to return 0 without querying
if the parent record is new. Consider the following code:
class Account
has_many :dossiers
end
class Dossier
belongs_to :account
end
a = Account.new
a.dossiers.build
# before patch
a.dossiers.count
# SELECT COUNT(*) FROM "dossiers" WHERE "dossiers"."account_id" IS NULL
# => 0
# after
a.dosiers.count # fires without sql query
# => 0
Fixes #1856.
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Thanks to @jeremy to teach me this one.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This reverts commit 4e9f53f9736544f070e75e516c71137b7eb49a7a, reversing
changes made to 6b802cdb4f5b84e1bf49aaeb0e994b3be6028af9.
Revert "Don't use tap in this case."
This reverts commit 454d820bf0a18fe1db4c55b0145197d70fef1f82.
Reason: Is not a good idea to add options to this method since we can do
the same thing using method composition.
Person.validators_on(:name).select { |v| v.kind == :presence }
Also it avoids to change the method again to add more options.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The use of tap in this case is very confusing since we are mutating the
return value inside the block
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Make `.validators_on` accept `:kind` option
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This will filter out the validators on a particular attribute based on
its kind.
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
Make Rails.public_path return a Pathname
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
Add ActiveSupport::KeyGenerator as a simple wrapper around PBKDF2
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Available both as an env entry for rack and an instance method on Rails::Application for other uses
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This will be used to derive keys from the secret and a salt, in order to allow us to
do things like encrypted cookie stores without using the secret for multiple
purposes directly.
|
| | |\ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |_|_|/ / / /
|/| | | | | | |
Fix reset_counters crashing on has_many :through associations.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The counter column name in the intermediate model need to be access
via the through reflection.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Fixes issue #5660: Failsafe exception returns text/html and text/plain.
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It's best to just return text/plain when something has gone terribly
wrong.
Fixes #5660.
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Optimize log subscribers to check if the log level is sufficient
|
| |\ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | | |
optimize_log_subscribers
|
| | | | | | | | |
|