aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make #save behavior mimic AR::Base#save (true on success, false on failure)Jamis Buck2006-10-025-12/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: introduce Mysql::Result#all_hashes to support further optimization. ↵Jeremy Kemper2006-10-022-10/+43
| | | | | | Closes #5581. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix issue with #class_inheritable_accessor saving updates to the parent ↵Rick Olson2006-10-023-1/+38
| | | | | | class when initialized with an Array or Hash [mojombo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* use instance vars in rescue templates since controller may not be ↵Jeremy Kemper2006-10-022-5/+5
| | | | | | instantiated yet git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assume the passed headers to the ActiveResource HttpMock Request/Response ↵Rick Olson2006-10-021-2/+2
| | | | | | are hashes [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* save! shouldn't validate twice. Closes #6324.Jeremy Kemper2006-10-023-2/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Association collections have an _ids reader method to match the existing ↵Jeremy Kemper2006-10-013-1/+47
| | | | | | writer for collection_select convenience (e.g. employee.task_ids). The writer method skips blank ids so you can safely do @employee.task_ids = params[:tasks] without checking every time for an empty list or blank values. References #1887, Closes #5780. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed deprecated @request and @response usages.Kent Sibilev2006-10-013-5/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed some deprecation warnings in ActionPack [Rick Olson]Rick Olson2006-09-303-4/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add an attribute reader method for ActiveRecord::Base.observers [Rick Olson]Rick Olson2006-09-302-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use class name as XML_TYPE_NAMES key.Jeremy Kemper2006-09-292-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash#to_xml supports Bignum and BigDecimal. Closes #6313.Jeremy Kemper2006-09-294-16/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Basic HTTP Authentication to ActiveResource (closes #6305). [jonathan]Rick Olson2006-09-297-39/+190
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate @responseJeremy Kemper2006-09-2910-24/+27
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5207 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate @headersJeremy Kemper2006-09-295-7/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate @cookiesJeremy Kemper2006-09-296-6/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include caller of deprecated count method.Jeremy Kemper2006-09-291-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use the first unparsed argument as the code or file to run. Closes #6286.Jeremy Kemper2006-09-292-6/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5203 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_select_rjs decodes escaped unicode chars since the Javascript ↵Jeremy Kemper2006-09-293-17/+37
| | | | | | generators encode them. Closes #6240. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: @request will be removed after 1.2. Use the request method instead.Jeremy Kemper2006-09-2912-112/+105
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* modify head so that you can specify a bare status code as the first parameterJamis Buck2006-09-282-6/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActionController::Base#head for rendering empty responses. Add support ↵Jamis Buck2006-09-285-2/+176
| | | | | | for symbolic status codes, as well as for having raw integer statuses expand with their default messages. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't undefine #class in OptionMerger [Rick]Rick Olson2006-09-273-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug that kept any before_filter except the first one from being able to ↵Rick Olson2006-09-274-5/+52
| | | | | | halt the before_filter chain. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure map.resources(:things, :new => { :new => :any }) correctly sets ↵Jamis Buck2006-09-262-10/+31
| | | | | | /things/new to be accessible by any method rather than creating another resource at /things/new;new git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: count class method should be called with an options hash rather ↵Jeremy Kemper2006-09-269-25/+50
| | | | | | than two args for conditions and joins. Closes #6287. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* strip_links is case-insensitive. Closes #6285.Jeremy Kemper2006-09-263-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* whitespaceJeremy Kemper2006-09-261-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* script/runner can run files, pass on arguments, and be used as a shebang. ↵Jeremy Kemper2006-09-262-6/+29
| | | | | | Closes #6286. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* has_one associations with a nil target may be safely marshaled. Closes #6279.Jeremy Kemper2006-09-263-2/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* scaffold_resource naming, fixes #6276Jeremy Kemper2006-09-252-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5182 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* organize associations testsJeremy Kemper2006-09-256-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* use a real testJeremy Kemper2006-09-251-9/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed invocation of deprecated before_action and around_action filter methods.Kent Sibilev2006-09-252-7/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Duplicate the hash provided to AR::Base#to_xml to prevent unexpected side ↵Michael Koziarski2006-09-243-1/+18
| | | | | | effects [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clear the cache of possible controllers whenever Routes are reloaded.Nicholas Seckar2006-09-233-2/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* workaround collections loaded as :people => { :person => [{..attrs..}, ↵Jeremy Kemper2006-09-222-28/+44
| | | | | | {..attrs..}] } git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Filters overhaul including meantime filter support for around filters. ↵Jeremy Kemper2006-09-224-230/+676
| | | | | | Closes #5949. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* use ActiveRecordTestCaseJeremy Kemper2006-09-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* deprecation_method_warning and deprecation_horizon - fewer moving parts, ↵Jeremy Kemper2006-09-221-1/+9
| | | | | | easy to localize git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* use :dependent => :destroy rather than :dependent => trueJeremy Kemper2006-09-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Look for rake tasks in plugin subdirs. Closes #6259.Jeremy Kemper2006-09-222-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update RJS render tests.Sam Stephenson2006-09-202-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Just use the vanilla mime type string, no need for fancy lookups [DHH]David Heinemeier Hansson2006-09-201-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fixed failing tests now that non-GET requests are sent with .xml file ext. ↵Rick Olson2006-09-204-13/+30
| | | | | | Extracted #id_from_response as an entry point for customizing how a created resource gets its own ID. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update CGI process to allow sessions to contain namespaced models. Closes #4638.Nicholas Seckar2006-09-202-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix routing to respect user provided requirements and defaults when ↵Nicholas Seckar2006-09-203-9/+90
| | | | | | assigning default routing options (such as :action => 'index'). Closes #5950. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Hash.create_from_xml has been renamed to Hash.from_xml, alias will exist ↵David Heinemeier Hansson2006-09-206-10/+17
| | | | | | until Rails 2.0 [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added map.connect ':controller/:action/:id.:format' as a default route to ↵David Heinemeier Hansson2006-09-202-0/+3
| | | | | | config/routes.rb [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Implemented ./script/generate scaffold_resource comment body:text ↵David Heinemeier Hansson2006-09-197-71/+120
| | | | | | created_at:datetime active:boolean price:decimal git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de