Commit Graph

15685 Commits

Author SHA1 Message Date
Pratik Naik
5562abb4e9 Dont try to load the record from the db if preloading didn't find anything 2010-03-31 12:56:09 +01:00
Xavier Noria
607f945b1d adds missing require for blank? and present? 2010-03-31 04:40:51 -07:00
José Valim
62151dd272 Deprecate cookie_verifier_secret in favor of config.cookie_secret allowing signed cookies to work again. 2010-03-31 12:59:41 +02:00
Santiago Pastorino
c10958fbdd avoid method redefined; discarding old empty? warning [#4302 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-30 16:59:48 -07:00
Santiago Pastorino
7d0eea179b Don't cache the utc_offset we are already caching the timezone [#4301 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-30 16:36:16 -07:00
Xavier Noria
1412ad437e adds and entry for assert_blank and assert_present to CHANGELOG 2010-03-30 15:54:20 -07:00
Juanjo Bazan
589deb39c7 New assertion: assert_present [#4299 state:committed]
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-03-30 15:25:38 -07:00
Juanjo Bazan
7212c29802 new assertion: assert_blank
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-03-30 15:25:38 -07:00
José Valim
772a0226fd Add a test which ensures slugs in :id work. 2010-03-31 00:19:40 +02:00
Joshua Peek
53e16d8011 Missed a few spots in railties 2010-03-30 14:18:08 -05:00
Joshua Peek
cdf8c35ffd Consistent routing language 2010-03-30 14:05:42 -05:00
Joshua Peek
17f0c1e9e8 Fix stack overflow bug in integration test router helpers 2010-03-30 13:58:18 -05:00
Emilio Tagua
37102a5237 Fix failing test in MySQL.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-30 16:01:53 +02:00
Emilio Tagua
8d99ec9a4d Named scopes shouldn't test equality using to_a if it's not an Array, this was causing records to be loaded before they were needed.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-30 15:36:18 +02:00
José Valim
41b45d5655 Bring rdoc tasks back to plugins. 2010-03-30 14:41:58 +02:00
José Valim
ffcd44144a Remove deprecated model_subclass since it was never published. 2010-03-30 14:41:58 +02:00
Xavier Noria
ce3864aa36 periods are not metacharacters within character classes 2010-03-30 01:55:06 -07:00
José Valim
ebcc4c5e74 Remove if/else branch when generating the documentation since we are simply inspecting the load path. 2010-03-30 10:00:46 +02:00
postmodern
f9e84a9e5a Changed gem_path to yield the path found in $LOAD_PATH to a block.
* This allows gems not found in $LOAD_PATH to be safely ignored by the
  rails documentation task.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-30 09:58:39 +02:00
Michael Koziarski
bc298152f8 Fix syntax error and avoid the use of unless/else. 2010-03-30 14:31:16 +13:00
wycats
4aded43b73 Replace the placeholder base_hook API with on_load. To specify some code that
should run during framework load do:

ActiveSupport.on_load(:action_controller) do
  # Code run in the context of AC::Base
end
2010-03-29 17:08:50 -07:00
José Valim
331327d391 Just inspect load paths to generate the documentation. 2010-03-30 01:34:06 +02:00
José Valim
56bed512f9 Fix dom_id for ActiveRecord [#4296 state:resolved] 2010-03-30 01:32:26 +02:00
wycats
b94c4080e5 Revert "Ruby 1.9: use ruby-debug19. [#3949 state:resolved]"
This wasn't the issue here; we need to beef up the docs and speak to
Wayne and Mark about installation.

This reverts commit da238dafd7.
2010-03-30 01:32:26 +02:00
Jeremy Kemper
4fbcde43e3 Ruby 1.9: use ruby-debug19. [#3949 state:resolved] 2010-03-30 01:32:26 +02:00
Jeremy Kemper
af8852d1ad Work without bundler 2010-03-29 16:25:52 -07:00
Jeremy Kemper
e30363617c Revert "Hash#symbolize_keys(!) optimizations"
Was slower in common case.

[#3891 state:open]

This reverts commit 2060977b76.
2010-03-29 15:48:36 -07:00
Ernie Miller
63026541b2 Fix honoring :primary_key option when joining or eager loading a belongs_to association
[#765 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-29 15:24:27 -07:00
wycats
a509b0b18f Revert "Ruby 1.9: use ruby-debug19. [#3949 state:resolved]"
This wasn't the issue here; we need to beef up the docs and speak to
Wayne and Mark about installation.

This reverts commit da238dafd7.
2010-03-29 14:07:12 -07:00
Jeremy Kemper
da238dafd7 Ruby 1.9: use ruby-debug19. [#3949 state:resolved] 2010-03-29 13:59:20 -07:00
José Valim
74efe4c253 Revert "Update USAGE docs for generators."
This reverts commit d31e03f356.
2010-03-29 18:46:04 +02:00
José Valim
9a865ee25e Revert "Reorganized app/test directory. [#3057 state:resolved]"
This reverts commit a0dc6755db.
2010-03-29 18:36:28 +02:00
Jeremy Kemper
94ced08543 ruby-debug19 doesn't install cleanly on 1.9.2 trunk 2010-03-29 08:57:43 -07:00
Jeremy Kemper
36a5e78c14 Add missed changelog for table_name_prefix 2010-03-29 08:56:40 -07:00
Jeremy Kemper
4072adf9ca Merge remote branch 'miloops/master' 2010-03-29 08:30:00 -07:00
Emilio Tagua
7006aa1a85 Arel now handles ranges with excluded end. 2010-03-29 12:30:13 -03:00
Jeremy Kemper
0d6f97e702 Bump mail to 2.1.5.3 2010-03-29 08:05:39 -07:00
Emilio Tagua
53ddbfc460 Warn scoped order and limit are ignored. [#4123 state:resolved] 2010-03-29 11:30:06 -03:00
wycats
5f7bc47303 Rename modularized_table_name_prefix to full_table_name_prefix [#4032 state:resolved] 2010-03-28 23:45:38 -07:00
Andrew White
67d1cec4c8 Add the ability to specify table_name_prefix on individual modules
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 23:43:28 -07:00
wycats
48c1d8c341 Provide a better error if the parsed REXML document has no root [#3803 state:resolved] 2010-03-28 23:21:35 -07:00
Jeremy Kemper
41e7c68d87 Ruby 1.9.2: marshaling round-trips Time#zone 2010-03-28 22:52:08 -07:00
Andrew White
40d90ed7df Ignore generated railties RDocs [#4289 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 22:45:29 -07:00
Andrew White
d39ec81955 Make Railties RDoc task work again [#4291 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 22:45:03 -07:00
Rizwan Reza
d31e03f356 Update USAGE docs for generators. 2010-03-28 22:38:46 -07:00
Rizwan Reza
a0dc6755db Reorganized app/test directory. [#3057 state:resolved]
Run 'rake update:test_directory' to reorganize your already generated apps.

test/functional                   ->      test/controllers
test/functional                   ->      test/controllers
test/unit/helpers                 ->      test/helpers
test/unit/**/*_observer_test.rb   ->      test/observers
test/unit                         ->      test/models
2010-03-28 22:38:46 -07:00
Aaron Patterson
98d2d8ce2c use the database to lower case strings rather than ruby. [#4293 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 22:16:34 -07:00
Santiago Pastorino
4ea289fb11 ruby-debug19 added to Gemfile [#4290 state:committed]
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 20:24:36 -07:00
David Heinemeier Hansson
a4eab8f1f3 Update example of default_scope to use the new arel finder syntax 2010-03-28 19:11:06 -07:00
wycats
bd69589143 preinitializer.rb is no longer needed, so remove it from the guide and replace with better suggestion. [#4279 state:resolved] 2010-03-28 19:08:06 -07:00