Commit Graph

2104 Commits

Author SHA1 Message Date
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
Rizwan Reza
de2b0147d0 Reapply Rizwan's patch, but memoize Bundler.load.specs in an ivar. [#3697 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 17:42:53 -07:00
wycats
c99194c7be Merge remote branch 'rizwan/restrict' 2010-03-28 11:06:46 -07:00
Xavier Noria
76f024ac8d adds missing requires for Object#blank? and Object#present? 2010-03-28 14:15:02 +02:00
Rizwan Reza
835f5d0269 Rails 3 application can run performance tests now. [#4171 state:resolved] 2010-03-28 15:03:25 +04:30
watsonian
edd59b7bb9 Fixes typo in environments/production.rb template. 2010-03-27 19:02:05 -07:00
José Valim
140cc9caf6 Do not check for a valid const name in Rails 3.0 applications. [#4200 state:resolved] 2010-03-27 10:46:17 +01:00
wycats
56a86c2191 Make X-Sendfile default to "" so it works correctly in dev mode.
Provide a default in production.rb that can be modified, so that
people who care about sendfile performance in production mode can
get better performance easily.
2010-03-26 16:58:55 -07:00
wycats
197904341f Merge branch 'master' into docrails 2010-03-26 15:10:24 -07:00
José Valim
b3a0aed028 Just assert for 'Hi' in generated mailer tests. 2010-03-26 20:25:54 +01:00
José Valim
395d6648ce Move application configuration to the application configuration object, remove railtie_name and engine_name and allow to set the configuration object. 2010-03-26 18:47:55 +01:00
José Valim
fc266d7ec2 Revert "find railties and engines by name [4264 state:resolved]"
This reverts commit 7b8399b80cfff58cfe2313187ca3c803de8c8955.
2010-03-26 16:12:35 +01:00
Edgars Beigarts
0848c862f0 Make script/dbconsole work with oracle (sqlplus <username>[/<password>][@<connect_identifier>])
[#3773 state:resolved]
2010-03-26 15:54:04 +01:00
José Valim
f5ee855f43 Improve heuristic for railties default name, otherwise railties may be named :railtie, :engine and so on. 2010-03-26 14:41:48 +01:00
Josh Susser
7b8399b80c find railties and engines by name [4264 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-26 14:25:45 +01:00
wycats
45e8cf59df init.rb in plugins is here to stay 2010-03-23 16:35:14 -07:00
José Valim
5c41cb77d9 Ensure lib/rails/initializers/*.rb also works for gems. 2010-03-23 23:50:53 +01:00
Joshua Peek
e47a1d7865 Load plugin initializers from lib/rails/initializers/*.rb 2010-03-23 15:36:32 -05:00
José Valim
b9f551ac15 Explicitly require files before monkey patching them. 2010-03-23 17:48:29 +01:00
Sebastian Martinez
10825be40b rake tasks should use the new app generator path [#4257 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-23 14:26:27 +01:00
José Valim
05ec99eed9 bin/rails should use the new app generator path. 2010-03-23 14:12:58 +01:00
José Valim
b61f6f5980 Load generators from both lib/rails/generators and lib/generators. Using the former since it's less obstrusive. 2010-03-23 13:40:41 +01:00
wycats
0b16c7602d No -rubygems needed 2010-03-22 14:17:49 -07:00
wycats
d03af48a7d Provide a better error if thor is missing 2010-03-22 14:09:00 -07:00
José Valim
e8a80cdded Controller generators should use routes shortcut. 2010-03-22 21:07:37 +01:00
José Valim
fb89aba8b4 Killing fixtures in mailer before they kill me (they usually lead to very brittle tests). 2010-03-22 21:07:37 +01:00
Jeremy Kemper
49416550fe Fix regression introduced in 8b50f89. Generated views mentioned the wrong path. 2010-03-21 16:07:21 -07:00
Sebastian Martinez
0137566c85 do not support 'data-url' anymore, just use 'href' [#4236 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-21 19:31:54 +01:00
José Valim
8b50f89ba7 Make ERB generators more flexible and customizable. 2010-03-21 19:30:42 +01:00
Joshua Peek
fcc6b12e77 Autoload Rails::Info 2010-03-20 14:03:43 -05:00
Joshua Peek
14b7452c57 Require info controller from info routes 2010-03-20 13:33:25 -05:00
Joshua Peek
f38e89cfba Move railties/builtin into lib 2010-03-20 12:34:21 -05:00
Sam Ruby
80095c54bd Controller generators should generate tests when action is supplied. [#3421 state:resolved] 2010-03-20 00:51:56 +01:00
José Valim
562154fcbc Controller generator now creates routes as well [#4233 state:resolved] 2010-03-19 18:12:54 +01:00
José Valim
7a5da21481 Use human_name in scaffold. 2010-03-17 00:09:43 +01:00
José Valim
0db68fd140 Change functional tests to make use of a setup block. 2010-03-16 16:53:54 +01:00
Chris Griego
0f504a5646 Deprecated framework rake tasks should exit with non-zero exit code [#4177 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-16 11:10:30 +01:00
Pratik Naik
03a62f4afe Merge remote branch 'mainstream/master' 2010-03-15 19:46:03 +00:00
Caio Chassot
94a60a5600 In app_generator, fix hardcoded bundle call to derive the bundle executable name from Thor::Util.ruby_command.
This ensures that eg. when `rails` is called from `ruby1.9`, `bundle1.9` is called.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
Kieran Pilkington
9268b598bb Add a check to ensure that the application name does not already exist, i.e. String or Module are part of ruby [#3872 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
José Valim
b8f7ba2935 Prettify generators description whenever using the default stack [#4143 status:resolved] 2010-03-12 21:33:39 +01:00
José Valim
611744ebd3 Load the environment before executing rails console. [#3905 status:resolved] 2010-03-12 20:41:41 +01:00
José Valim
2b0611b9bb Revert "Always load the environment before executing any command. [#3905 status:resolved]"
This reverts commit 16846553b8866eab2aa3b128a2a23a221a25f7e3.
2010-03-12 20:40:34 +01:00
Pratik Naik
e68bfaf1fe Merge remote branch 'mainstream/master'
Conflicts:
	activerecord/lib/active_record/base.rb
	railties/lib/rails/configuration.rb
	railties/lib/rails/log_subscriber.rb
2010-03-12 16:00:01 +00:00
José Valim
16846553b8 Always load the environment before executing any command. [#3905 status:resolved] 2010-03-12 12:53:22 +01:00
Jeremy Kemper
d56e8be22d Revert "Rake task for generating Rails documentation updated to support Bundler."
Incredibly slow. Fix gem_path to not load the bundle fresh each call.

This reverts commit 58796dcfc0d74fa3def752fa8b779f725f0747f0.
2010-03-11 13:23:58 -08:00
Rizwan Reza
58796dcfc0 Rake task for generating Rails documentation updated to support Bundler.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-11 13:44:57 +01:00
Jeremy Kemper
3d5d0286b3 Update scaffold to use <%= form_for 2010-03-10 16:04:12 -08:00
José Valim
6cee532a44 Added alert to layouts on scaffold. 2010-03-09 22:21:51 +01:00
Carlhuda
ae93789d9a Move middlewares to the Application level. If you want to modify the middleware, either use Rails.application.config.middleware or modify it in an initializer (if you need to set it relative to user-specified middleware). 2010-03-08 11:40:51 -08:00