| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
performing an operations.
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
performing an operations.
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Use Rack::Cache middleware only if is in Gemfile
|
| | | | | | | | |
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
prefix TemplateAssertions ivars.
Closes #7459
|
| | | | | | | | | |
|
|/ / / / / / / / |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
resource and resources do no longer modify passed options
|
|/ / / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | | |
this is a patch for #7777.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
warning fixed: (...) interpreted as grouped expression
|
|/ / / / / / / / |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
fix broken cache tests
|
|/ / / / / / / / |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Fix the build (Broken scaffold routes test)
|
|/ / / / / / / / |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
fix cache store test
|
|/ / / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Pull #7800 broke the build, this should fix it.
|
|\ \ \ \ \ \ \ \
| |_|_|/ / / / /
|/| | | | | | | |
Master branch: Fixed generated whitespace in routes when using namespaced resource.
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
referencing foo.js as foo/index.js and vice versa.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Fix other assertions that were backwards.
|
|/ / / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This time I used ack.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
fix order of assertions.
|
|/ / / / / / / / |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Optimize ActiveSupport::Cache::Entry to reduce overhead
|
|/ / / / / / / / |
|
|\ \ \ \ \ \ \ \
| | |_|_|_|_|_|/
| |/| | | | | | |
Fix changelog entry about sprockets-rails
|