Commit Graph

348 Commits

Author SHA1 Message Date
David Heinemeier Hansson
11f766d3eb Removed authentication framework as xal made me realize that with noradios conditional filters, it was actually more code to use the framework than doing it by hand. Killing a darling! Props to noradio for the patch and xal for the nerve to stand up and question the captain before the plane crashed. Oh, and a pad on my own back for walking away from a couple of hours of work without getting pissy
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@355 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 17:21:29 +00:00
David Heinemeier Hansson
677d92299b Added conditional filters #431 [Marcel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 17:14:47 +00:00
David Heinemeier Hansson
c83683202a Added write_inheritable_hash to use with conditional filters in Action Pack
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 17:05:02 +00:00
David Heinemeier Hansson
cbd367b7fa Added :before option to authentication
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 16:43:21 +00:00
David Heinemeier Hansson
75fca04590 Added authentication framework to protect actions behind a condition and redirect on failure. See ActionController::Authentication for more.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 15:20:00 +00:00
David Heinemeier Hansson
298cbbd3a0 Added the first of the coming core extensions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 15:02:39 +00:00
David Heinemeier Hansson
f626aece79 Added the first of the coming core extensions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 15:00:45 +00:00
David Heinemeier Hansson
7145046493 Added rewrite conditions needed for page caching to work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-08 23:46:29 +00:00
David Heinemeier Hansson
0b6fe2244e Taken out as noradio took over
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-08 23:41:42 +00:00
David Heinemeier Hansson
df79e135ac Added first stab at page and fragment caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-08 23:32:11 +00:00
David Heinemeier Hansson
48f590a42e Fixed rewriting of dashes, lashes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-08 14:22:29 +00:00
David Heinemeier Hansson
b64004fda6 Fixed that conditions in has_many and has_and_belongs_to_many should be interpolated just like the finder_sql is
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@344 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-07 03:55:24 +00:00
David Heinemeier Hansson
98c02b9656 Simplified the set_cookie method and made it indifferent to symbol or string as name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-06 23:25:19 +00:00
David Heinemeier Hansson
70039d1e91 Fixed WEBrick servlet slowdown over time by restricting the load path reloading to mod_ruby #372
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-06 15:56:57 +00:00
David Heinemeier Hansson
393e98a859 Fixed Base#update_attribute to be indifferent to whether a string or symbol is used to describe the name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-06 02:36:33 +00:00
David Heinemeier Hansson
d1abe806c5 Added Base#toggle(attribute) and Base#toggle!(attribute) that makes it easier to flip a switch or flag. Added Base#increment!(attribute) and Base#decrement!(attribute) that also saves the records. Added Base#increment(attribute) and Base#decrement(attribute) that encapsulates the += 1 and -= 1 patterns.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-06 02:31:35 +00:00
David Heinemeier Hansson
fd48e70d6c Fixed small issue with ARGV and IRB
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-05 19:16:50 +00:00
David Heinemeier Hansson
efe0348486 Added the possibility of passing nil to UrlHelper#link_to to use the link itself as the name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-05 00:38:09 +00:00
David Heinemeier Hansson
f92ae75a23 Removed Fancy Indexing as a default option on the WEBrick servlet as it made it harder to use various caching schemes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 22:50:15 +00:00
David Heinemeier Hansson
0dd43e3868 Include package dependency information
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 12:48:09 +00:00
David Heinemeier Hansson
395a25c47d Upgrade the dependencies of the Rails gem
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 12:37:45 +00:00
David Heinemeier Hansson
f2e6945b25 Prepared for release of 0.9.3
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 12:35:10 +00:00
David Heinemeier Hansson
2afdf01e5c Minor tweak for readability
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 11:00:48 +00:00
David Heinemeier Hansson
6f711551d4 Fixed some thread safety issues with DB2
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 10:55:34 +00:00
David Heinemeier Hansson
3e74ea89bc Added MemCacheStore for storing session data in Danga's MemCache system [Bob Cottrell]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 02:09:38 +00:00
David Heinemeier Hansson
d05fa50914 Fixed #406 for real
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 02:03:50 +00:00
David Heinemeier Hansson
f8bc7a4577 Fixed that validates_uniqueness_of used 'id' instead of defined primary key #406
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 01:23:38 +00:00
David Heinemeier Hansson
5ac11f2de3 Fixed that the overwritten respond_to? method didn't take two parameters like the original #391
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-03 23:24:31 +00:00
David Heinemeier Hansson
846f0d5ab6 Fixed that the overwritten respond_to? method didn't take two parameters like the original #391
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-03 23:23:02 +00:00
David Heinemeier Hansson
02c21bc986 Added support for SQLite in the auto-dumping/importing of schemas for development -> test #416
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-03 23:15:22 +00:00
David Heinemeier Hansson
d9e900cd9d Fixed the last details to please DB2
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-03 23:00:44 +00:00
David Heinemeier Hansson
b3739fca2c Nuke the controllers after the dispatcher reload to avoid the superclass mismatch problem
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 23:42:21 +00:00
David Heinemeier Hansson
612bb73fec Fixed a YAML fixture on time coming out as an integer #415 [Dan Peterson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@322 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 23:31:13 +00:00
David Heinemeier Hansson
3e7a4ecc57 Fixed redirects when the controller and action is named the same. Still haven't fixed same controller, module, and action, though #201 [Josh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 20:10:11 +00:00
David Heinemeier Hansson
1f6c4aca28 Fixed loading problems with controller hierarchies
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 19:35:58 +00:00
David Heinemeier Hansson
dc79236120 Fixed problems with running multiple functional tests in Rails under 1.8.2 by including hack for test/unit weirdness
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 19:34:49 +00:00
David Heinemeier Hansson
609ca177fa Added HasManyAssociation#count that works like Base#count #413 [intinig]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 18:44:55 +00:00
David Heinemeier Hansson
375568b7cb Fixed problems with dependency caching and controller hierarchies on Ruby 1.8.2 in development mode #351
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 18:32:56 +00:00
David Heinemeier Hansson
569f2ea85b Added the possibility of specifying the remaining options for find_first and find_all with the new find_by/all_by* dynamic finders [danp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 18:28:18 +00:00
David Heinemeier Hansson
ddcc67115c Added thread-safety to the DRbStore #66, #389 [Ben Stiglitz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 16:00:50 +00:00
David Heinemeier Hansson
3c141e12fc DB2 driver shouldnt be looking for RubyGems stuff
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 15:53:00 +00:00
David Heinemeier Hansson
51a13a7530 Brought install.rb up to date #408 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 15:38:49 +00:00
David Heinemeier Hansson
a18b3bf5c0 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de 2005-01-02 15:37:09 +00:00
David Heinemeier Hansson
ce58e5cd06 Added DateHelper#select_time and DateHelper#select_second #373 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 15:32:01 +00:00
David Heinemeier Hansson
f4b721904a Added test cases and rakefile to Active Support
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 15:16:59 +00:00
David Heinemeier Hansson
089ef42520 Fixed handling of binary content in blobs and similar fields for Ruby/MySQL and SQLite #409 [xal]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 15:09:03 +00:00
David Heinemeier Hansson
959f362ac4 Added find_all style to the new dynamic finders
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@308 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 13:51:00 +00:00
David Heinemeier Hansson
ac8fd7dfb9 Added dynamic attribute-based finders as a cleaner way of getting objects by simple queries without turning to SQL.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 13:31:00 +00:00
David Heinemeier Hansson
93221685f1 Restored bind arity checking #412 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 12:45:53 +00:00
David Heinemeier Hansson
6bd672eb0d Added that Base#find takes an optional options hash, including :conditions. Base#find_on_conditions deprecated in favor of #find with :conditions #407 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-01 19:50:23 +00:00