aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move to_xml tests to xml_serialization_test.rbJohn Firebaugh2011-07-172-143/+133
| | | | | One duplicate was eliminated: test_to_xml_including_methods/ test_methods_are_called_on_object.
* We already have the record; no need to retrieve it againJohn Firebaugh2011-07-171-2/+2
|
* Replace map+compact with selectJohn Firebaugh2011-07-171-1/+1
|
* Add a testJohn Firebaugh2011-07-171-0/+5
|
* serializable_hash(:only => [], :methods => [:foo]) should workJohn Firebaugh2011-07-172-7/+14
|
* Merge pull request #2118 from arunagw/fix_plugin_gen_testSantiago Pastorino2011-07-171-1/+1
|\ | | | | As we are adding db folder in it. Required in test also.
| * As we are adding db folder in it. Required in test also.Arun Agrawal2011-07-171-1/+1
|/
* indeed, if we are going to remove everything in public/assets on ↵Xavier Noria2011-07-171-4/+1
| | | | assets:clean, just do that
* if we are cleaning all files, we are cleaning all gz filesXavier Noria2011-07-171-1/+0
|
* Merge pull request #2082 from htanata/rake_routes_formattingSantiago Pastorino2011-07-164-15/+107
|\ | | | | Better formatting of rake routes (issue #1991)
| * Improve formatting of route to Rack application in rake routes.Hendy Tanata2011-07-172-3/+24
| | | | | | | | | | | | | | | | | | | | This route: match 'foo/:id' => RackApp, :id => /[A-Z]\d{5}/ is shown as: /foo/:id(.:format) RackApp {:id=>/[A-Z]\d{5}/}
| * Better formatting of route requirements in rake:routes.Hendy Tanata2011-07-164-14/+85
| | | | | | | | | | | | | | | | | | | | Previously it was: {:controller=>"photos", :action=>"show", :id=>/[A-Z]\d{5}/} Now it becomes: photos#show {:id=>/[A-Z]\d{5}/}
* | Merge pull request #2108 from loz/masterSantiago Pastorino2011-07-161-0/+5
|\ \ | | | | | | Adds gem helper rake tasks to engines generator
| * | Added gem helper to rake task for engines, as per pull request from ↵Jonathan Lozinski2011-07-161-0/+5
| | | | | | | | | | | | 3-1-stable, #2103
* | | Fix the output a bitSantiago Pastorino2011-07-161-2/+2
| | |
* | | Merge pull request #2101 from loz/masterJosé Valim2011-07-161-1/+1
|\| | | | | | | | Added db to gemspec so migrations are packaged
| * | Added db to gemspec files so migrations are correctly packagedJonathan Lozinski2011-07-161-1/+1
| |/
* | Merge pull request #2090 from htanata/fix_wildcard_route_code_in_changelogSantiago Pastorino2011-07-151-2/+2
|\ \ | |/ |/| Fix wildcard route code example in changelog
| * Fix wildcard route code example in changelog.Hendy Tanata2011-07-161-2/+2
|/
* Merge pull request #2073 from bfolkens/masterSantiago Pastorino2011-07-141-0/+5
|\ | | | | ported test from pull request #2071 to master
| * assert nothing raised for setting a cookie value to nil in ActionDispatchBradford Folkens2011-07-141-0/+5
| |
* | Merge pull request #2063 from elight/masterSantiago Pastorino2011-07-142-3/+29
|\ \ | | | | | | Patch for https://github.com/rails/rails/issues/2059
| * | Fix and unit test for https://github.com/rails/rails/issues/2059Evan Light2011-07-142-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge pull request #1807 from caius/find_in_batches_id_bugSantiago Pastorino2011-07-142-2/+21
|\ \ \ | |_|/ |/| | Bugfix by stopping find_in_batches using the records after yielding.
| * | Stop find_in_batches using the records after yielding.Caius Durling2011-06-212-2/+21
| | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2066 from amatsuda/magicomeAaron Patterson2011-07-142-0/+4
|\ \ \ | |_|/ |/| | missing magic comments
| * | need magic commentsAkira Matsuda2011-07-142-0/+4
|/ /
* | Merge pull request #2052 from amatsuda/fullwidth_blankAaron Patterson2011-07-132-2/+6
|\ \ | | | | | | treat fullwidth whitespace as a blank character
| * | treat fullwidth whitespace as a blank characterAkira Matsuda2011-07-142-2/+6
| | |
* | | Bump rack upSantiago Pastorino2011-07-131-1/+1
|/ /
* | Use cache/assets instead.José Valim2011-07-124-5/+4
| |
* | assets.cache_store now defaults to filesystem. You will want to share ↵José Valim2011-07-126-16/+9
| | | | | | | | tmp/assets_cache between deploys.
* | Merge pull request #2042 from SAP-Oxygen/master-sqlbypass-patchSantiago Pastorino2011-07-121-7/+13
|\ \ | | | | | | Fix for SqlBypass session store (for master)
| * | Fix for SqlBypass session storeJoseph Wong2011-07-121-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge pull request #2041 from SAP-Oxygen/master-session-id-patch-with-testSantiago Pastorino2011-07-122-2/+37
|\ \ \ | | | | | | | | Fixed session ID fixation for ActiveRecord::SessionStore (for master)
| * | | Fixed session ID fixation for ActiveRecord::SessionStoreJoseph Wong2011-07-122-2/+37
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | Merge pull request #2038 from FLOChip/extra_spaceJosé Valim2011-07-122-4/+4
|\ \ \ | |/ / |/| | remove extra space since comment_if already returns the space.
| * | remove extra space since comment_if already returns the space.Teng Siong Ong2011-07-132-4/+4
|/ /
* | Fix failure in test_preserves_existing_fixture_data from ↵Jon Leighton2011-07-121-2/+2
| | | | | | | | test/cases/fixtures_test.rb when UTC and local time occur on different dates.
* | Fix exception if old and new targets are both nil. Fixes #1471.Jon Leighton2011-07-124-2/+15
| |
* | Ensure Dir.glob is sortedJoshua Peek2011-07-111-1/+1
| |
* | Generate valid default fixtures for models with a type columnMarc-Andre Lafortune2011-07-112-1/+6
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Merge pull request #1722 from AndrewRadev/grouped-selectJosé Valim2011-07-112-2/+48
|\ \ | | | | | | Make "select" helper handle nested collections
| * | Grouped select helperAndrew Radev2011-07-112-2/+48
| | | | | | | | | | | | FormBuilder#select now works with a nested data structure.
* | | Merge pull request #1756 from shtirlic/xmlschema_fixJosé Valim2011-07-112-1/+8
|\ \ \ | |/ / |/| | Fix xmlschema output with fraction_digits >0
| * | Fix xmlschema output with fraction_digits >0shtirlic2011-07-112-1/+8
| | | | | | | | | | | | | | | Current implementation produce incorrect output when Time#usec returns integer < 100000, because to_s doesn't add leading zeros.
* | | Merge pull request #2032 from dziulius/masterXavier Noria2011-07-111-1/+1
|\ \ \ | | | | | | | | #many? - uses count instead of select
| * | | #many? uses count instead of select - a bit fasterJulius Markūnas2011-07-111-1/+1
| | | |
* | | | Merge pull request #2009 from vatrai/autoload-todo-newJosé Valim2011-07-118-15/+7
|\ \ \ \ | | | | | | | | | | TODO fix explicitly loading exceptations, autoload removed
| * | | | TODO fix explicitly loading exceptations, autoload removedVishnu Atrai2011-07-118-15/+7
| | | | |