| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Previously it was:
{:controller=>"photos", :action=>"show", :id=>/[A-Z]\d{5}/}
Now it becomes:
photos#show {:id=>/[A-Z]\d{5}/}
|
|\
| |
| | |
ported test from pull request #2071 to master
|
| | |
|
|\ \
| | |
| | | |
Patch for https://github.com/rails/rails/issues/2059
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Cache key was incorrectly using timezone-dependent record#updated_at when it should be using a timezone-independent value to generate the cache key
Minor refactoring to cache_key timezone test
Closes #2059
Adds a test to validate the format of the cache_key for nil and present updated_at values
Correctly handles updated_at == nil
|
|\ \ \
| |_|/
|/| | |
Bugfix by stopping find_in_batches using the records after yielding.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Currently if the code that calls .find_in_batches modifies the yielded array in place then .find_in_batches can enter an infinite loop searching with ruby object ids in the database instead of the primary key of records in the database. This happens because it naively assumes the yielded array hasn't been modified before calling #id on the last object in the array. And ruby (1.8 at least) alias' #id to #object_id so an integer is still returned no matter what the last object is.
By moving finding the #id of the last object before yielding the array it means the calling code can do whatever it wants to the array in terms of modifying it in place, and .find_in_batches doesn't care.
|
|\ \ \
| |_|/
|/| | |
missing magic comments
|
|/ / |
|
|\ \
| | |
| | | |
treat fullwidth whitespace as a blank character
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| | |
tmp/assets_cache between deploys.
|
|\ \
| | |
| | | |
Fix for SqlBypass session store (for master)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Two issues fixed:
1) connection_pool is not defined - needed by SessionStore#drop_table!
and create_table! since c94651f
2) initialization of connection to the default of AR::Base.connection
only occurred at the singleton level - the instance level method defined
by cattr_accessor did not have this logic
|
|\ \ \
| | | |
| | | | |
Fixed session ID fixation for ActiveRecord::SessionStore (for master)
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I have found that Rails will take an invalid session ID specified by the
client and materialize a session based on that session ID. This means
that it is possible, among other things, for a client to use an
arbitrarily weak session ID or for a client to resurrect a previous used
session ID. In other words, we cannot guarantee that all session IDs are
generated by the server and that they are (statistically) unique through
time.
The fix is to always generate a new session ID in #get_session if an
existing session cannot be found under the incoming session ID.
Also added new tests that make sure that an invalid session ID is never
materialized into a new session, regardless of whether it comes in via a
cookie or a URL parameter (when :cookie_only => false).
|
|\ \ \
| |/ /
|/| | |
remove extra space since comment_if already returns the space.
|
|/ / |
|
| |
| |
| |
| | |
test/cases/fixtures_test.rb when UTC and local time occur on different dates.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
|\ \
| | |
| | | |
Make "select" helper handle nested collections
|
| | |
| | |
| | |
| | | |
FormBuilder#select now works with a nested data structure.
|
|\ \ \
| |/ /
|/| | |
Fix xmlschema output with fraction_digits >0
|
| | |
| | |
| | |
| | |
| | | |
Current implementation produce incorrect output when Time#usec returns
integer < 100000, because to_s doesn't add leading zeros.
|
|\ \ \
| | | |
| | | | |
#many? - uses count instead of select
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
TODO fix explicitly loading exceptations, autoload removed
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
from uglifier.
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Mention about acronym inflection in config/initializers/inflections.rb
|
| | | | |
| | | | |
| | | | |
| | | | | |
Closes #1366
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Create a test case for disable_referential_integrity
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|_|_|/ /
|/| | | | | |
MemcacheStore: deserialize the entry reading from local_cache when using
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Resubmitting issue #636 as a pull request
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
(besides type) fails
|
|\ \ \ \ \ \ \
| |_|_|_|/ / /
|/| | | | | | |
Put back Rails.application#env_default and deprecate it [Closes #1922]
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Log instrumentation name for exists? queries
|
| | | | | | | |
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Include TagHelper within AssetTagHelper
|
|/ / / / / / / |
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
having() raises NoMethodError: undefined method `empty?' when the given argument does not respond to empty?
|