| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Based on my benchmark results, this change improves performance
substantially when defining callbacks.
This benchmark (https://gist.github.com/wangjohn/5542610) was run using
the current master and also using my experimental branch which replaced
class_eval with define_single_method.
Using class_eval (current master):
user system total real
10 trials 0.000000 0.000000 0.000000 ( 0.001568)
50 trials 0.020000 0.000000 0.020000 ( 0.021715)
500 trials 0.110000 0.000000 0.110000 ( 0.115357)
1000 trials 0.250000 0.000000 0.250000 ( 0.260025)
10000 trials 2.560000 0.000000 2.560000 ( 2.568408)
50000 trials 12.800000 0.010000 12.810000 ( 12.886871)
Using define_single_method (experimental branch):
user system total real
10 trials 0.000000 0.000000 0.000000 ( 0.000790)
50 trials 0.000000 0.000000 0.000000 ( 0.002960)
500 trials 0.050000 0.010000 0.060000 ( 0.055690)
1000 trials 0.100000 0.000000 0.100000 ( 0.094073)
10000 trials 0.890000 0.000000 0.890000 ( 0.900364)
50000 trials 4.650000 0.000000 4.650000 ( 4.686127)
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Use Ruby's native Encoding functionality to implement `tidy_bytes`
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The previous implementation was quite slow. This leverages some of the
transcoding abilities built into Ruby 1.9 instead. It is roughly 96%
faster.
The roundtrip through UTF_8_MAC here is because ruby won't let you
transcode from UTF_8 to UTF_8. I chose the closest encoding I could
find as an intermediate.
|
|\ \ \ \
| | | | |
| | | | | |
Remove current_adapter? from test_sanitize_sql_hash_handles_associations
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Because of each adapter implementation differences,
`expected_value` string needed to be handled by each adapter.
This commit removes current_adapter
by using ActiveRecord::ConnectionAdapters::Quoting methods.
|
| | | | | |
|
| | | | | |
|
| |/ / /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | | |
dependency ActiveSupport::Deprecation
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Fix Typo existant -> existent [ci skip]
|
|/ / / / |
|
|\ \ \ \
| |_|/ /
|/| | | |
Finding inverse associations automatically
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
the results. Added tests to check to make sure that inverse associations are
automatically found when has_many, has_one, or belongs_to associations
are defined.
|
|\ \ \
| | | |
| | | | |
fix issue #10502, do not recompute method name for already-stringified object callback filter
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
object filter
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
patricksrobertson/bigserial_id_not_identifying_pk"
This reverts commit 3043d45eefc3776d5f3a9e7d212a01f99d869ef8, reversing
changes made to ca0275d36b395631725c4583db5a45c06443fdb9.
|
|\ \ \
| |/ /
|/| | |
Add PK constraint on bigserial ID columns on postgres adapter
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In #10410 it was noted that you can no longer create PK's with the
type of bigserial in PostgreSQL in 4.0.0.rc1. This is mostly
because the newer adapter is checking for column type with the
id column instead of just letting it pass through like it did
before.
Side effects:
You may just create a PK column of a type that you really don't
want to be your PK. As far as I can tell this was allowed in 3.2.X
and perhaps an exception should be raised if you try and do
something extremely dumb.
|
|/ /
| |
| |
| | |
https://github.com/rails/etagger/pull/3
|
|\ \
| | |
| | | |
Allow fetching multiple values from the cache at once
|
| | |
| | |
| | |
| | |
| | | |
Add a simple API for fetching a list of entries from the cache, where
any missing entries are computed by a supplied block.
|
|\ \ \
| | | |
| | | | |
Allow numbers in partial name for digesting
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add failing test for template with number at the end
Use \w for RENDER_DEPENDENCY regex
Spacing
Add CHANGELOG entry
|
|\ \ \ \
| |/ / /
|/| | | |
Instrument template compilation
|
| |/ / |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Confirm a record has not already been destroyed before decrementing counter cache
Conflicts:
activerecord/CHANGELOG.md
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
counter cache
At present, calling destroy multiple times on the same record results
in the belongs_to counter cache being decremented multiple times. With
this change the record is checked for whether it is already destroyed
prior to decrementing the counter cache.
|
|\ \ \ \
| | | | |
| | | | | |
use canonical #controller_path logic in controller test cases
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
zohlgren/fix_activerecord_sanitization_sanitize_sql_hash
Fix bug in ActiveRecord::Sanitization#sanitize_sql_hash_for_conditions
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixing CHANGLOG description
Remove extra line.
Remove blank lines.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
fix failing test caused by 3771e4d511
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
See the comment in the rescue clause towards the top of the patch for the rationale.
|
|\| | | | |
| | | | | |
| | | | | | |
raise IrreversibleMigration if no column given
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
fixes #10419
Following code should raise IrreversibleMigration. But the code was
failing since options is an array and not a hash.
def change
change_table :users do |t|
t.remove_index [:name, :email]
end
end
Fix was to check if the options is a Hash before operating on it.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
remove unused variable
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Speed up Hash#to_param by switching from #sort to #sort!
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Check https://gist.github.com/vipulnsward/6aad158c06a22f931a71 to see the gains.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix typo in documentation comment [ci skip]
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
akalyaev/set-correct-backend-for-nokogirisax-engine
use nokogirisax as a backend
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Most likely someone just forgot to change it during copying and
pasting test cases from nokigiri engine test.
|
|\ \ \ \ \ \ \
| |_|_|/ / / /
|/| | | | | | |
Updated link to to GitHub article about ignoring files [ci skip]
|