José Valim
b67ec8ba20
class_attribute is not a direct replacement of class_inheritable_*.
...
If you are setting a hash or an array in class_attribute or you need
to freeze it, to ensure people won't modify it in place or you need
to dup it on inheritance.
2010-06-10 19:39:09 +02:00
Guillermo Álvarez
c4d6245e87
Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [ #4818 state:resolved]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-10 12:05:12 -04:00
Neeraj Singh
e11bb95d56
Validators should at model level and not at AR:Base level [ Closes #4804 ]
...
[#4804 state:resolved]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-10 11:50:42 -04:00
David Heinemeier Hansson
983815632c
Cut down even further on rake -T noise
2010-06-09 17:14:53 -04:00
José Valim
211799450d
Ensure show exceptions middleware properly filters backtrace before logging.
2010-06-09 22:49:14 +02:00
David Heinemeier Hansson
fa15111d30
Silence even more noisy rake task docs
2010-06-09 16:39:01 -04:00
David Heinemeier Hansson
29acc17c0f
Cut down on tasks shown in rake -T
2010-06-09 16:19:03 -04:00
David Heinemeier Hansson
c9d156f063
Remove outdated section on web servers that didnt really tell you much anyway
2010-06-09 15:50:48 -04:00
David Heinemeier Hansson
2f398f23d6
Remove needless links and search box and update doc links
2010-06-09 15:47:43 -04:00
David Heinemeier Hansson
5c5b73518a
You dont have to manually mention the application layout, its automatically used
2010-06-09 15:38:06 -04:00
James Le Cuirot
0265c708b9
Don't overwrite unsaved updates when loading an association but preserve the order of the loaded records. [ #4642 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2010-06-09 18:17:52 +05:30
Santiago Pastorino
6898c167c3
Make sure about which is the first element of the query, fixes a postgresql 8.4 failing test
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-09 10:06:41 +02:00
Santiago Pastorino
5b42acdadd
Should call configure! to initiliaze the application
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-09 10:06:34 +02:00
Santiago Pastorino
cfacae1a7d
SQLite2Adapter doesn't exist
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-09 10:06:24 +02:00
Santiago Pastorino
0919c0dbca
Removed textilize, textilize_without_paragraph and markdown helpers
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-09 10:06:14 +02:00
Neeraj Singh
f48aa14bf4
Better test for ticket [ #3914 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-09 09:51:05 +02:00
wycats
df40dbe6f1
Merge branch 'master' of github.com:rails/rails
v3.0.0.beta4
2010-06-08 18:10:27 -04:00
wycats
6ebc7c8ee6
Update bundler dependency
2010-06-08 18:10:18 -04:00
José Valim
5c9f27abaa
Add more cases to previous commit [ #4394 state:resolved]
2010-06-08 23:26:51 +02:00
Jan De Poorter
4560385fa4
Make sure namespaces are nested within resources
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 23:21:53 +02:00
Neeraj Singh
db23a95a61
cache_sweeper yields blank output
...
[#3914 state:open]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 23:20:04 +02:00
Brian Durand
2500e6af66
Make logic for after_commit and after_rollback :on option work like it does for validation callbacks.
...
[#2991 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-08 17:05:29 -04:00
Jeremy Kemper
b070739240
Revert "Temporarily revert "Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction.""
...
This reverts commit 1b2941cba1 .
[#2991 ]
2010-06-08 17:05:29 -04:00
Jeremy Kemper
87cc3d5569
Clarify Fixture#key_ and value_list
2010-06-08 17:05:29 -04:00
Xavier Noria
f1c0bcfbb6
Merge remote branch 'docrails/master'
2010-06-08 22:39:30 +02:00
José Valim
e50bf67ffa
Bring pg back.
2010-06-08 22:36:35 +02:00
Emilio Tagua
4b4a548a60
Avoid PostgreSQL and MySQL tests warnings.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 22:36:19 +02:00
David Heinemeier Hansson
03be27092b
Revert "Add shallow routes to the new router" for now. Needs more work.
...
This reverts commit 67a60ee314 .
2010-06-08 16:20:46 -04:00
Andrew Bloomgarden
0e9b9d5985
Fix ActiveRecord::Base.compute_type swallowing NoMethodError. [ #4751 state:resolved]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-08 15:34:47 -04:00
David Chelimsky
bdcf70cca8
Memoize the object returned by _view in ActionView::TestCase::Behavior
...
[#4799 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 21:25:31 +02:00
Xavier Noria
751f79a033
Merge remote branch 'rails/master'
2010-06-08 21:23:29 +02:00
Emilio Tagua
ab2877cbe8
Add parentheses to avoid warnings when running AR tests.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 21:16:19 +02:00
Emilio Tagua
d103c73d95
Bump Arel to 0.4.0
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 20:59:14 +02:00
Jeremy Kemper
1b2941cba1
Temporarily revert "Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction."
...
This reverts commits d2a49e4b1f and da840d13da .
[#2991 ]
Conflicts:
activerecord/CHANGELOG
activerecord/lib/active_record/transactions.rb
activerecord/test/cases/transaction_callbacks_test.rb
2010-06-08 14:56:08 -04:00
David Heinemeier Hansson
32d4330b81
Get ready for beta 4
2010-06-08 14:47:02 -04:00
David Heinemeier Hansson
585f8f27b1
Fixed double output from cache in no caching mode
2010-06-08 14:47:02 -04:00
Aaron Patterson
eb69721c9b
forcing encoding on 1.9 when dealing with "binary" columns [ #4612 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-06-08 14:33:28 -04:00
wycats
6b49a71ab7
Missing require restored
2010-06-08 14:24:35 -04:00
José Valim
68b4720fd1
Accept both regexps and strings for LOCALHOST.
2010-06-08 20:11:05 +02:00
Xavier Noria
e7e6ee3e7b
AS guide: documents datetime calculations
2010-06-08 20:10:39 +02:00
wycats
068f8d6e85
Require encoding.rb
2010-06-08 14:09:34 -04:00
Prem Sichanugrist
c6ad64394b
Make sure that rails recognized the full notation of IPv6 loopback address, and recognize 127.0.0.0/8 in IPv4
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 19:45:40 +02:00
Andrew White
a7edddf605
Fix resources ignoring scope options
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 19:33:27 +02:00
rohit
47bf19c848
Made markdown honor :safe option and handle safe input. Also added tests for markdown.
...
[#4794 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 17:00:11 +02:00
José Valim
9d33c2ab6f
Fix generator test broken when rails new was added.
2010-06-08 16:05:19 +02:00
José Valim
aa8b56f5d6
Hide remaining generators hooks [ #4790 state:resolved]
2010-06-08 16:01:11 +02:00
Andrew White
4740fbac85
Add support for actions on a new resource to the new routing DSL [ #4328 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 09:11:39 +02:00
rohit
67f411c57b
Fixed textilize_without_paragraph and added tests for it. [ #4792 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 09:11:34 +02:00
Ernie Miller
a4eaa1fd39
Fix multiple self-referencing eager loads failing to join multiple times
...
[#4679 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-08 01:02:19 -04:00
Mikel Lindsaar
e404490f9b
Merge branch 'master' of git://github.com/rails/rails
2010-06-08 00:10:11 -04:00