David Heinemeier Hansson
100b994d90
Added binary formatting
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-04 00:37:47 +00:00
David Heinemeier Hansson
15b022a74f
Rolled back broken aliasing
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 23:27:51 +00:00
David Heinemeier Hansson
e72ff355c3
Fixed that Module#alias_method_chain should work with both foo? foo! and foo at the same time ( closes #4954 ) [anna@wota.jp]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 22:43:13 +00:00
David Heinemeier Hansson
b85c5356c9
Added documentation for inflections ( closes #5013 ) [m.stienstra@fngtps.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4428 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 22:30:32 +00:00
Jeremy Kemper
9422e71ca8
Uncry thyself
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 01:02:42 +00:00
Jeremy Kemper
48052d70ec
to_xml fixes, features, and speedup. Closes #4989 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-03 00:01:08 +00:00
Sam Stephenson
c377ce50ed
Add OrderedHash#values
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-02 17:28:15 +00:00
David Heinemeier Hansson
9fcc0654c3
Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would fail if collection was empty [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-01 00:43:02 +00:00
David Heinemeier Hansson
24a5a803f3
Oracle and others wont take a string null for an answer
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-01 00:23:08 +00:00
David Heinemeier Hansson
408fe5facc
Added Array#to_s(:db) that'll produce a comma-separated list of ids [DHH] Split Grouping into its own file
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-31 23:25:36 +00:00
Jeremy Kemper
d31830cf9c
fix test warnings
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-31 22:43:53 +00:00
Marcel Molina
f91096a543
Normalize classify's argument to a String so that it plays nice with Symbols. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-22 15:17:45 +00:00
Marcel Molina
422cba934c
Strip out leading schema name in classify. References #5139 . [schoenm@earthlink.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 15:11:00 +00:00
Nicholas Seckar
04fb7c30e3
Remove Enumerable#first_match in favor of using break(result_for_each)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 01:42:36 +00:00
Marcel Molina
36d1a2f302
Make Array#in_groups_of just return the grouped collection if a block isn't given. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-17 05:12:53 +00:00
Marcel Molina
f2b3deb85c
Don't destroy a HashWithIndifferentAccess if symbolize_keys! or stringify_keys! is called on it. Closes #5076 . [Marcel Molina Jr., guy.naor@famundo.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-14 18:17:30 +00:00
Jeremy Kemper
d249ff579a
Trim typo.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-08 18:10:40 +00:00
Jeremy Kemper
befd62c2fc
Document Active Support's Module::delegate. Closes #5002 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-08 18:04:07 +00:00
Rick Olson
325cb1269c
Namespaced OrderedHash so the Rails implementation does not clash with any others. ( fixes #4911 ) [Julian Tarkhanov]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-30 20:36:37 +00:00
Marcel Molina
9f92dd3984
Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 20:20:22 +00:00
Marcel Molina
995167ec2e
Strip out punctuation on predicates or bang methods being aliased with alias_method_chain since target?_without_feature is not a valid method name. Add tests for Module#alias_method_chain. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 20:13:27 +00:00
Marcel Molina
6186490962
Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-29 18:10:14 +00:00
Marcel Molina
71ff705449
Allow default options in with_options to be overridden. Closes #4480 . [murphy@cYcnus.de]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4282 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-26 21:49:41 +00:00
Jamis Buck
794d93f7a5
Added Module#alias_method_chain
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-26 17:46:43 +00:00
David Heinemeier Hansson
71a570ffd7
Updated to Builder 2.0 [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-25 02:47:44 +00:00
Sam Stephenson
c71607e29c
Add Array#split for dividing arrays into one or more subarrays by value or block
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-13 05:12:43 +00:00
David Heinemeier Hansson
944ae628f5
Update versions for Rails 1.1.1
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-06 05:26:14 +00:00
Nicholas Seckar
e714b25723
Update the diagnostics template skip the useless '<controller not set>' text.
...
Fix symbol extensions test case.
Clean paths inside of exception messages and traces.
Add Pathname.clean_within for cleaning all the paths inside of a string.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-04 19:37:29 +00:00
Nicholas Seckar
d0e8d5430a
Typo fix
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-03 05:21:26 +00:00
Michael Koziarski
a4f74da225
Fix for depot and other applications with .13 style environment.rb files. prints deprecation warnings to the log file
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-03 03:06:23 +00:00
David Heinemeier Hansson
484e1c65d8
Added docs for to_proc
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-02 16:28:30 +00:00
David Heinemeier Hansson
ebc0a38d40
Use --simple-prompt instead of --prompt-mode simple for console compatibility with Windows/Ruby 1.8.2 #4532 [starr@starrnhorne.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-01 19:08:04 +00:00
David Heinemeier Hansson
479b4fb5d9
Made ready for release
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-28 05:03:05 +00:00
David Heinemeier Hansson
218406570d
Fixed docs
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-28 03:31:01 +00:00
Nicholas Seckar
9efca53908
Dependencies cleanup. Fixes #4221 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-27 05:13:46 +00:00
Nicholas Seckar
24403498ba
Add CachingTools::HashCaching to simplify the creation of nested, autofilling hashes.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4059 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-27 03:59:35 +00:00
Nicholas Seckar
2683782455
Remove broken hack which has no effect.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 20:04:14 +00:00
Nicholas Seckar
3bab575316
Update Object.subclasses_of to locate nested classes. Update Object.remove_subclasses_of to use Class.remove_class.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-26 20:00:40 +00:00
David Heinemeier Hansson
6247689e59
Added Fixnum#seconds for consistency, so you can say 5.minutes + 30.seconds instead of 5.minutes + 30 ( closes #4389 ) [Francois Beausoleil]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-25 21:43:46 +00:00
David Heinemeier Hansson
d15550aecc
Fixed the hash.delete :sym ( closes #2176 ) [Stefan Kaes]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4005 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 18:53:52 +00:00
David Heinemeier Hansson
eedd9d7604
Updated Kernel#returning for the AP performance patch [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 04:37:32 +00:00
David Heinemeier Hansson
d19e8f412f
Performance speedup for ActionController ( closes #4174 ) [Stefan Kaes] Includes caching of filter chains -- be on the lookout for problems with that!
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 04:01:10 +00:00
David Heinemeier Hansson
324ece25e9
Rolled back #2176 because it destroyed performance [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3988 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 03:57:13 +00:00
Rick Olson
afde9943ea
fix indifferent hash. The lambdas were acting funny in a running rails app. closes #2176
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3987 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 03:39:46 +00:00
David Heinemeier Hansson
4e7c6f58fb
Added option to String#camelize to generate lower-cased camel case by passing in :lower, like "super_man".camelize(:lower) # => "superMan" [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3986 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-20 03:32:28 +00:00
Rick Olson
891a962a19
Added nicer message for assert_redirected_to ( closes #4294 ) [court3nay, Chris McGrath]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3969 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-19 03:50:14 +00:00
David Heinemeier Hansson
eba58b2c12
Date in iso8601 should just be a to_s alias
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-18 21:46:49 +00:00
David Heinemeier Hansson
2de765e850
Dates should be able to go xmlschema too [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3950 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-18 21:37:10 +00:00
David Heinemeier Hansson
8b8a30dd0a
Fixed the to_xml case ( closes #4201 ) [twoggle@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3925 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-18 15:28:46 +00:00
David Heinemeier Hansson
504ab568f8
Fixed HashWithIndifferentAccess#delete to work with both symbols and strings ( closes #2176 ) [Caio Chassot]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-18 04:01:44 +00:00