Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make sure ActiveResource::Errors#from_json doesn't pass nil to #from_array ↵ | David Trasbo | 2010-06-26 | 2 | -2/+13 |
| | | | | | | [#3650 state:commited] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Small changes to responder: | José Valim | 2010-06-26 | 1 | -5/+13 |
| | | | | | | * resources is always an array; * Lazy retrieve request and formats; * Alias api_location and navigation_location to resource_location, making easier to change its behavior without affecting each other and without a need to reimplement any of the behavior methods. | ||||
* | Oops. Make previous commit pass on 1.9.2. | José Valim | 2010-06-26 | 1 | -1/+2 |
| | |||||
* | Tidy up tests in previous commit since they did not assure an OrderedHash is ↵ | José Valim | 2010-06-26 | 1 | -3/+2 |
| | | | | | | returned (the test would pass for an array and would pass by chance for hashes). [#4875 state:resolved] | ||||
* | Add OrderedHash#invert to preserve order in ruby 1.8 [#4875] | chaitanyav | 2010-06-26 | 2 | -0/+10 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Support optional static segements as well [#4832 state:resolved] | Andrew White | 2010-06-26 | 2 | -1/+35 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fixed normalize_path in Routing::Mapper to handle optional prefix segments ↵ | Paul Barry | 2010-06-26 | 2 | -1/+47 |
| | | | | | | with static and dynamic parts Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Work around the fact the JSON gem was overwriting to_json implementation for ↵ | José Valim | 2010-06-26 | 5 | -22/+44 |
| | | | | | | | all Ruby core classes. This is required because the JSON gem is incompatible with Rails behavior and was not allowing ActiveModel::Errors to be serialized. So we need to ensure Rails implementation is the one triggered. [#4890 state:resolved] | ||||
* | Move some methods into 1.8.x-only proxy. [#4978 state:resolved] | Norman Clarke | 2010-06-26 | 1 | -40/+39 |
| | | | | | | | | These methods had been overridden because they had bugs on 1.9.1. Since Rails now supports only 1.9.2, and these methods now work properly on that version, there's no longer any need to override them. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Don't force pluralization of controller name when defining a resource [#4980 ↵ | Andrew White | 2010-06-26 | 2 | -1/+18 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | URL fragments should not have safe characters escaped. Ref: Appendix A, ↵ | Andrew White | 2010-06-25 | 2 | -4/+10 |
| | | | | | | | | http://tools.ietf.org/rfc/rfc3986.txt [#4762 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | refactoring the postgres adapter index method to avoid inject and use ↵ | Aaron Patterson | 2010-06-26 | 1 | -4/+4 |
| | | | | | | values_at. [#4976 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | blocks removed from all the ActiveRelation query_methods, extend method ↵ | Santiago Pastorino | 2010-06-26 | 3 | -9/+14 |
| | | | | | | added instead Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Merge branch 'tago' | José Valim | 2010-06-26 | 4 | -11/+170 |
|\ | |||||
| * | Add column and index query methods to ActiveRecord::Schema | Andrew White | 2010-06-26 | 4 | -11/+170 |
| | | | | | | | | | | | | [#4219 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | index dump should not include full text indexes. Thanks Ken Mayer for the ↵ | Aaron Patterson | 2010-06-26 | 2 | -8/+7 |
| | | | | | | | | | | | | original patch! [#4949 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | reorder method added to ActiveRelation | Santiago Pastorino | 2010-06-26 | 2 | -0/+14 |
| | | | | | | | | | | | | [#4972 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Test for concatenated orders added | Santiago Pastorino | 2010-06-26 | 2 | -1/+7 |
| | | | | | | | | | | | | [#4972] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Remove previously defined class method logger to supress warnings in Active ↵ | rohit | 2010-06-26 | 1 | -0/+4 |
| | | | | | | | | | | | | Support test suites. [#4618 state:open] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Alias ActiveSupport::OrderedHash#update to ActiveSupport::OrderedHash.merge! | Paul Mucur | 2010-06-25 | 2 | -0/+8 |
| | | | | | | | | | | | | | | | | This ensures that an OrderedHash's keys are set up appropriately when using update. [#4973 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | | reorganizing adapter specific tests. [#4974 state:resolved] | Aaron Patterson | 2010-06-25 | 13 | -3/+6 |
|/ | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Order is not guaranteed here, ordering by id of people table makes it work | Santiago Pastorino | 2010-06-25 | 1 | -2/+2 |
| | |||||
* | Change the generated Gemfile to resolve, via documentation, the issue of ↵ | wycats | 2010-06-25 | 1 | -3/+4 |
| | | | | rspec generators being unavailable in development mode | ||||
* | Support for multiple selects added | Neeraj Singh and Santiago Pastorino | 2010-06-25 | 3 | -7/+18 |
| | | | | [#4841 state:committed] | ||||
* | Makes a build_select for the select part of build_arel | Santiago Pastorino | 2010-06-25 | 1 | -10/+13 |
| | |||||
* | Metaprogramming not needed here | Santiago Pastorino | 2010-06-25 | 1 | -11/+9 |
| | |||||
* | Avoid a blank line before the add/remove columns | Santiago Pastorino | 2010-06-25 | 1 | -2/+2 |
| | |||||
* | Failing test for whether glob parameters accept regexps | Andrew White | 2010-06-25 | 1 | -0/+9 |
| | | | | | | [#4970 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add failing test case for parameters with periods | Andrew White | 2010-06-25 | 1 | -0/+27 |
| | | | | | | [#2536 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Depend on unreleased rack-mount 0.6.6.pre | Jeremy Kemper | 2010-06-25 | 1 | -0/+1 |
| | |||||
* | Do not mark the session as loaded if an error happened while doing it. | José Valim | 2010-06-25 | 1 | -2/+1 |
| | |||||
* | Calling exists? in the session store, without checking for stale sessions, ↵ | José Valim | 2010-06-25 | 2 | -10/+10 |
| | | | | was causing the cookie store to panic because we need to unpack the whole session to get its key. This commit fixes this issue and also caches exists calls for performance improvements. | ||||
* | Line break in migration template and nicer code indentation | Łukasz Strzałkowski | 2010-06-25 | 1 | -6/+8 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Do not wrap hidden fields with error proc [#4962 state:resolved] | Carlos Antonio da Silva | 2010-06-25 | 3 | -3/+23 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make sure that Rails doesn't resent session_id cookie over and over again if ↵ | Prem Sichanugrist | 2010-06-25 | 3 | -1/+27 |
| | | | | | | | | it's already there [#2485 state:resolved] This apply to only Active Record store and Memcached store, as they both store only the session_id, which will be unchanged, in the cookie. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Just reading flash messages should not create a session if one does not ↵ | José Valim | 2010-06-25 | 3 | -5/+29 |
| | | | | exist yet. | ||||
* | Dont reload the environment, just not needed bro | David Heinemeier Hansson | 2010-06-24 | 1 | -2/+0 |
| | |||||
* | adding missing assertion and fixing the test | Neeraj Singh | 2010-06-24 | 1 | -2/+4 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | fixing test by replacing assert with assert_equal | Neeraj Singh | 2010-06-24 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Merge remote branch 'miloops/fixes' | José Valim | 2010-06-24 | 8 | -48/+18 |
|\ | |||||
| * | Only yield block if given. | Emilio Tagua | 2010-06-24 | 1 | -2/+2 |
| | | |||||
| * | Remove block definitions in finder methods. | Emilio Tagua | 2010-06-24 | 1 | -4/+4 |
| | | |||||
| * | Remove block definition from method, is not needed since yield is used inside. | Emilio Tagua | 2010-06-24 | 3 | -3/+3 |
| | | |||||
| * | Don't define block, just yield if block is given. | Emilio Tagua | 2010-06-24 | 1 | -7/+7 |
| | | |||||
| * | Remove deprecated block usage in composed_of. | Emilio Tagua | 2010-06-24 | 2 | -32/+2 |
| | | |||||
* | | Remove the --singeleton option from scaffold generator. | Prem Sichanugrist | 2010-06-24 | 9 | -51/+3 |
| | | | | | | | | | | | | | | | | It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name. [#4863 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Your original TIME ZONE value on PostgreSQL is correctly restored now, after ↵ | Santiago Pastorino | 2010-06-24 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | going through options :utc and then going back to :local [#4950 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | quotes are not necessary here | Santiago Pastorino | 2010-06-24 | 1 | -2/+2 |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | adding middleware test for RAILS_CACHE | Neeraj Singh | 2010-06-24 | 1 | -0/+11 |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | Remove obsolete test case, since we have move Rails::LogSubscriber to ↵ | Prem Sichanugrist | 2010-06-24 | 1 | -9/+0 |
| | | | | | | | | | | | | ActiveSupport::LogSubscriber in [6788db824ab732b13493a9d702dd8fb89fa153c8] [#4816 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> |