Commit Graph

21101 Commits

Author SHA1 Message Date
Aaron Patterson
46bb424287 Revert "compute ext in initialize, and use an attr_reader"
This reverts commit 2dbb73bdda.

Conflicts:

	actionpack/lib/action_dispatch/middleware/static.rb
2011-02-28 19:47:09 -08:00
Aaron Patterson
f279422e33 no need to pass a regex to Regexp.compile 2011-02-28 18:03:06 -08:00
Aaron Patterson
2dbb73bdda compute ext in initialize, and use an attr_reader 2011-02-28 17:54:00 -08:00
Aaron Patterson
c563f71e53 Merge branch 'fuuu'
* fuuu:
  Move JoinDependency and friends from ActiveRecord::Associations::ClassMethods to just ActiveRecord::Associations
  Rewrote AssociationPreload.
2011-02-28 17:13:39 -08:00
Aaron Patterson
54fdd33f33 use a subclass of AS::TZ for testing html output 2011-02-28 16:30:14 -08:00
Aaron Patterson
19c763f783 reduce two method calls per request, 1 to method_missing and one to send 2011-02-28 15:47:25 -08:00
Jon Leighton
b171b9e73d Move JoinDependency and friends from ActiveRecord::Associations::ClassMethods to just ActiveRecord::Associations 2011-02-28 22:12:43 +00:00
Jon Leighton
d90b4e2615 Rewrote AssociationPreload. 2011-02-28 22:12:34 +00:00
Josh Kalderimis
7112cf5e02 Updated the AS guides with some information on the difference between Date.today and Date.current. 2011-02-28 14:05:49 -08:00
Josh Kalderimis
0f8d2794f2 updated Time, Date and DateTime current methods in AS to use Time.zone and not Time.zone_default.
[#6410 state:committed]
2011-02-28 14:05:49 -08:00
Xavier Noria
de9713186d revises a few details in public/index.html 2011-02-28 20:03:40 +01:00
Ben Orenstein
726599df98 Remove redundant to_sym call.
[#6483 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-28 16:43:12 -02:00
Aaron Patterson
a8dae084c9 skip this on oracle 2011-02-28 09:15:19 -08:00
Oriol Gual and Josep M. Bach
f42562f97b Make ActiveSupport::Configurable work with modules
[#6486 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-28 13:30:32 -02:00
Diego Carrion
a0629927b2 added activesupport/test/tmp to gitignore
[#6484 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-28 13:14:16 -02:00
Santiago Pastorino
53b17e9ad0 javascript_include_tag shouldn't raise if you register an expansion key with nil value 2011-02-28 11:52:00 -02:00
Santiago Pastorino
801e314006 Add tests for register expansion methods with key = [] 2011-02-28 11:30:12 -02:00
Santiago Pastorino
a00bed0c48 Revert "Properly interpolate i18n keys in modules [#5572 state:resolved]"
This breaks #6448, you should use :"module/class" as key for namespacing
[#6448 state:committed]

This reverts commit 8d30193b08.
2011-02-27 21:30:03 -02:00
Santiago Pastorino
acf0688fdd failing test for i18n key collision with namespaced models 2011-02-27 21:23:52 -02:00
Jeff Kreeftmeijer
86ad8a6c87 Make sure the Thor generator LoadError does not output --dev twice [#6431 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-27 18:53:18 -02:00
Aaron Patterson
f3e9cbc695 use an attribute rather than a SQL literal 2011-02-26 16:05:15 -08:00
Aaron Patterson
54a2bf6601 removing limits and offsets from COUNT queries unless both are specified. [#6268 state:resolved] 2011-02-25 15:38:59 -08:00
Aaron Patterson
8fc54a2e81 only take the limit if there is a limit to take 2011-02-25 14:24:05 -08:00
Xavier Noria
2e60b00788 Merge branch 'master' of git://github.com/lifo/docrails 2011-02-25 20:53:55 +01:00
Prem Sichanugrist
515ea955b6 Always use ActionDispatch::ShowExceptions middleware [#6462 state:resolved]
This will make sure the application will raise `ActionController::RoutingError` in case "X-Cascade: pass" header was set, usually when there's no route match.
2011-02-25 10:03:53 -08:00
Prem Sichanugrist
439a74520d Make sure that we set env["action_dispatch.show_exceptions"]
This has been used by `show_exception` middleware even the setting wasn't get passed to `env` hash.
2011-02-25 10:03:40 -08:00
Vijay Dev
287bb6990c standardize all shell commands with the $ prefix 2011-02-25 02:59:37 +05:30
Eric Allam
13547c16d9 fixes: ActiveRecord::Base.scopes includes all scopes defined in all subclasses 2011-02-24 11:17:06 -08:00
Josep M. Bach
55105c4318 Fix missing inheritance from AR::Base in docs 2011-02-24 10:00:09 +01:00
Aaron Patterson
5f1fc0c8ac observers leak across tests, so rather than modify the object, we should just count the number of times the observer was called 2011-02-23 16:04:01 -08:00
Vinicius Baggio
e8a578224f Removing redundant File.expand_path from generators test
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-02-23 19:42:51 +01:00
Rodrigo Navarro
0b2412978f Fixing wrong class name. 2011-02-23 10:23:01 -08:00
Rodrigo Navarro
29399e00c9 ActiveModel::Validator#validate must receive have a record parameter. 2011-02-23 10:22:03 -08:00
Kamal Fariz Mahyuddin
6ba8caf3ee Fix observer callbacks firing multiple times on descendant instances 2011-02-22 16:25:19 -08:00
José Valim
3265bbb659 Fix tests on 1.8. 2011-02-22 22:51:02 +01:00
Prem Sichanugrist
839d06f5f2 We're in 2011, let's update our license
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-22 18:24:20 -02:00
Michael Koziarski
3d907a68d9 Prepend the CSRF filter to make it much more difficult to execute application code before it fires. 2011-02-23 09:00:41 +13:00
Aaron Patterson
2cce44fa7c expectations change when using IM. Change oracle tests to reflect that 2011-02-22 11:27:12 -08:00
Aaron Patterson
4bd8d2607c Relation will delegate to AR::Base which already uses the Dynamic finders, so eliminate duplicate calls 2011-02-22 11:07:51 -08:00
Xavier Noria
f8cfa454e5 Merge branch 'master' of git://github.com/lifo/docrails 2011-02-22 19:06:29 +01:00
Mateus Paixão
20f2785849 alteracao de HTML para HTTP 2011-02-22 10:37:59 -03:00
Aaron Patterson
b3fcabb3a5 adding a test case for custom locking 2011-02-21 16:12:02 -08:00
Mani Tadayon
14263fa74e Merge branch 'master' of github.com:lifo/docrails 2011-02-21 13:46:19 -08:00
Mani Tadayon
ae78e462bc Fix typo in i18n guide: 'explicitely' 2011-02-21 13:45:21 -08:00
Xavier Noria
0d41fa9562 copy-edits 8d96b89 2011-02-21 13:44:20 -08:00
Xavier Noria
5e69debd7a copy-edits 6d7a826 2011-02-21 13:44:20 -08:00
Xavier Noria
fa38214641 copy-edits 34316d8 2011-02-21 13:44:20 -08:00
Nicholas Rowe
1700329526 Docs: Update to_xml documentation to match as_json docuemntation 2011-02-21 13:44:20 -08:00
Rodrigo Navarro
26a50689c9 Adding new examples for update_all method 2011-02-21 13:44:20 -08:00
Rodrigo Navarro
b39766fda5 Adding examples 2011-02-21 13:44:20 -08:00