Commit Graph

1800 Commits

Author SHA1 Message Date
José Valim
c7255386cd script/generate mailer Notifier will now create a mailer at app/mailers. 2010-01-19 01:36:06 +01:00
José Valim
93d64dfefc Improve script/generate help. 2010-01-19 01:36:06 +01:00
José Valim
e1029be1eb Since Rails will require Ruby >= 1.8.7, we can rely on instance_exec. 2010-01-19 01:36:06 +01:00
Joshua Peek
f2693cda44 Install plugin view paths into AM view load path 2010-01-18 16:48:04 -06:00
Joshua Peek
59cd044310 Add all folders in app/* to the load path 2010-01-18 15:37:58 -06:00
José Valim
728db5a932 Rake tasks should load generators from new paths. 2010-01-18 18:22:55 +01:00
Joshua Peek
68b76a38eb Cleanup deprecation notices. 2010-01-18 09:49:38 -06:00
José Valim
a2b76d1dde Improve generators help. 2010-01-18 16:21:11 +01:00
José Valim
61f77b1dcd More cleaning up on rails generators load path. 2010-01-18 16:21:11 +01:00
José Valim
9fffdc5cdb Generators load path now will be Ruby load path. If you want to use rspec:install generator, you need generators/rspec/install_generator in your load path. 2010-01-18 16:21:11 +01:00
José Valim
e75ea47434 Automatically remove :generators: from namespaces. 2010-01-18 16:21:10 +01:00
José Valim
a2e2e73c5e Ensure generators can be invoked by their shortcut and remove attr_reader tasks. 2010-01-18 16:21:10 +01:00
Rizwan Reza
a0dc6cc70b Fix RAILS_ROOT deprecation on guides generation. [#3710 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-17 16:28:31 +01:00
José Valim
58136e1bd3 Plugin generator should use templates. 2010-01-17 15:17:50 +01:00
Rizwan Reza
e3898bda9c Take --skip-activerecord into account boot.rb requires. [#3711 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-17 14:55:11 +01:00
Rizwan Reza
cf109342a7 Fixes rake:template task [#3714 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-17 14:54:49 +01:00
José Valim
020e656447 Move middleware builder back to Rails::Rack::Metal without losing the new behavior. 2010-01-17 13:23:38 +01:00
José Valim
27d9836ad3 Add ActionDispatch::Railties::Subscriber and finish tidying up the logging. 2010-01-17 12:43:17 +01:00
José Valim
61ada28ed3 Get rid of prepare_each_request, since now it's a middleware initialization parameter. 2010-01-17 11:44:04 +01:00
José Valim
8f5e733998 Add notifications to default middleware stack and update subscriber tests. 2010-01-17 11:35:48 +01:00
Joshua Peek
eb39d0f7b9 Use backtrace cleaner for dev mode exception page 2010-01-16 21:34:35 -06:00
Joshua Peek
d2d4acf027 Cookies middleware 2010-01-16 17:22:27 -06:00
Joshua Peek
603d4fbacd Build middleware stack and reload routes after app initializers run
[#3709 state:resolved]
2010-01-16 16:15:32 -06:00
Sam Granieri
488b4c8c5c Make script/dbconsole work again [#3690 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-01-16 20:55:22 +05:30
Joshua Peek
ead93c5be5 Move Flash into middleware 2010-01-15 14:55:13 -06:00
Joshua Peek
3eaf525213 Make HEAD method masquerade as GET so requests are routed correctly 2010-01-15 12:38:50 -06:00
José Valim
5252f5c1c9 Bundle automatically if --dev or --edge is given as option. 2010-01-15 13:39:56 +01:00
José Valim
6487d2871c Fix an issue where log was not being tailed in the first request. 2010-01-15 12:24:31 +01:00
José Valim
b0994be5bd LogTailer should be invoked after all logs in threads were flushed. 2010-01-15 12:24:31 +01:00
José Valim
b4019d5080 Rails::Subscriber is now responsible for flushing all loggers it's responsible for. 2010-01-15 12:24:31 +01:00
José Valim
8c8942ed4f Move Dispatcher setup to Railties and add instrumentation hook. 2010-01-15 12:24:30 +01:00
José Valim
9038a4af35 Add documentation to f.submit and make scaffold generators use the new shortcut. 2010-01-14 02:02:07 +01:00
José Valim
da5978c223 Add subscriber for ActionPack and move all logging inside it. 2010-01-13 01:19:23 +01:00
José Valim
743cafb7f4 Create Rails::Subscriber::TestHelper and use it to make ActiveRecord subscriber tests run in both sync and async scenarios. 2010-01-13 01:19:23 +01:00
José Valim
fe3ceabeed Set up subscriber on initialization. 2010-01-13 01:19:23 +01:00
José Valim
1a275730b2 Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER. 2010-01-13 01:19:22 +01:00
José Valim
9dd4c79d61 Allow to add subscribers through Railtie. 2010-01-13 01:19:22 +01:00
José Valim
1e12dc04cb Stub initial Rails::Subscriber implementation. 2010-01-13 01:19:22 +01:00
José Valim
5f34bd61b0 As the other constants, RAILS_DEFAULT_LOGGER no more. 2010-01-13 01:19:22 +01:00
José Valim
c4e3344a26 Revert "Add a generator_paths config option"
This reverts commit 8665c754cb61c947cd55f8886c28188050aed78d.
2010-01-13 01:19:22 +01:00
José Valim
a5c45e69d9 Remove old bundler version from vendor. 2010-01-13 01:19:22 +01:00
David Heinemeier Hansson
8cb594a2e1 Get everyone running on Rails.env and fix the broken environment settings for script/console and script/dbconsole 2010-01-11 14:01:28 -08:00
Joshua Peek
02bbde4e78 Cleanup junk metal and revise API
API Change: Returning a "X-Cascade: pass" header triggers the cascade
instead of a 404 response.
2010-01-10 23:09:10 -06:00
David Heinemeier Hansson
d2c4a93c69 Have to remove the environment name from ARGV or IRB will freak out 2010-01-09 09:52:16 -08:00
Yehuda Katz
8665c754cb Add a generator_paths config option 2010-01-09 11:04:06 -06:00
José Valim
3022ce4f72 No more hacks to ensure generators are executed inside Rails.root. 2010-01-07 21:24:50 +01:00
José Valim
ccc9f0b7de Ensure application names are not singularized. 2010-01-07 21:09:32 +01:00
Joshua Peek
8fe66f1af0 Run railtie and plugin initializers before app specific ones 2010-01-07 14:01:34 -06:00
José Valim
19e7c524d2 Ensure config/application.rb also uses app_const instead of app_name.classify. 2010-01-07 20:59:26 +01:00
Jeffrey Hardy
2dcc53bdbc Remove stray semicolon from cookie_verification_secret initialzer template 2010-01-07 11:51:54 -05:00