Joshua Peek
177a35e711
Added config.threadsafe! to toggle allow concurrency settings and disable the dependency loader
2008-08-04 22:19:41 -05:00
Ben Sandofsky
61842d97c5
Make requiring gems optional.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#743 state:resolved]
2008-08-04 14:53:21 +02:00
Jeremy Kemper
46a458206f
Merge branch 'master' of git@github.com:rails/rails
2008-07-31 16:35:58 -07:00
Jeremy Kemper
a540725f0d
load_application_classes requires files relative to the load path and without .rb extension, including .rb files in subdirectories
2008-07-31 16:35:17 -07:00
Tarmo Tänav
0b9bfbdebf
Use "/usr/bin/env ruby" instead of "/usr/local/bin/ruby"
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-31 16:39:48 -05:00
Tarmo Tänav
656f0e7c6c
Fix file permissions
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-31 16:36:23 -05:00
Joshua Peek
030d5854ad
Turn cache_classes on by default [ #645 state:resolved]
2008-07-31 13:42:28 -05:00
Michael Koziarski
f64bd2ca85
Ensure dbconsole includes the -p parameter to mysql as intended
2008-07-31 09:46:40 +02:00
José Valim
c4038764d2
Initializer requires ERB explicitly instead of assuming Action Pack loaded it. [ #722 state:resolved]
2008-07-30 01:49:49 -07:00
José Valim
c8e80f6389
Initializer skips prepare_dispatcher if Action Controller isn't in use. [ #721 state:resolved]
2008-07-30 01:41:51 -07:00
Michael Koziarski
d9452d3ab3
Remove incomplete non-blocking logger functionality
2008-07-29 20:01:25 +02:00
Pratik Naik
6e75455125
Merge docrails changes
2008-07-28 12:33:24 +01:00
Sam Granieri
11fdcf88c2
Check for ActionMailer and ActionController before attempting to eager load their view paths
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-24 13:51:54 -05:00
Joshua Peek
3fd9036fc5
Added config.dependency_loading to enable or disable the dependency loader after initialization
2008-07-24 11:58:26 -05:00
Joshua Peek
97a954bf1d
Load view path cache after plugins and gems.
2008-07-23 10:41:28 -05:00
Miles Georgi
92f944818e
Make script/plugin work with svn+ssh urls. [ #662 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-22 01:43:23 +01:00
Joshua Peek
89ec72c281
Added configurable eager load paths. Defaults to app/models, app/controllers, and app/helpers
2008-07-21 13:43:23 -05:00
Joshua Peek
3bd34b6ffe
Preload application classes. Uses same strategy as phusion passenger.
2008-07-21 13:43:23 -05:00
David Heinemeier Hansson
706425e154
Update Prototype to 1.6.0.2 (Patrick Joyce) [ #599 status:committed]
2008-07-19 13:56:38 -05:00
Joshua Peek
e0d7bace4e
Prefer Mongrel over Thin [ #658 state:resolved]
2008-07-19 11:42:27 -05:00
Joshua Peek
576cae0043
Stub out timestamped_migrations in generator tests
2008-07-19 11:34:32 -05:00
Jeremy Kemper
1e0f94a77c
Introduce simple internationalization support
2008-07-17 14:56:12 -07:00
Nik Wakelin
bbab639136
Set config.active_record.timestamped_migrations = false to have migrations with numeric prefix instead of UTC timestamp. [ #446 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-17 02:54:45 +01:00
Pratik Naik
0432d15164
Merge with docrails.
2008-07-16 13:01:23 +01:00
Joshua Peek
f7d08acd5e
Add some useful comments to rackup config
2008-07-15 23:32:31 -05:00
Pratik Naik
8b933517ea
Add config.ru to rails app generator
2008-07-16 05:20:29 +01:00
Joshua Peek
fea5b6fd41
ActionMailer and ActionView can share the same view path cache
2008-07-15 22:58:42 -05:00
Joshua Peek
83e29b9773
Removed config.action_view.cache_template_loading, use config.cache_classes instead
2008-07-15 22:58:42 -05:00
David Lowenfels
c7acfbb25d
requiring rubygems version 1.1.1
2008-07-15 16:28:41 -07:00
Jeremy Kemper
1edb5c85b5
Give more info on missing gems and abort instead of printing a warning. App can begin in incomplete state otherwise.
2008-07-15 15:50:37 -07:00
Pratik Naik
b337ab0221
Move performance test helper settings to railties
2008-07-15 21:07:25 +01:00
Jeremy Kemper
ae9356ae9e
Cache template loading for performance tests
2008-07-14 10:46:16 -07:00
Sebastian A. Espindola
0176e6adb3
Added db:charset support to PostgreSQL. [ #556 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-14 04:11:52 +01:00
Tim Pope
5c08607082
Make script/plugin install <plugin> -r <revision> option work with git based plugins. [ #257 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-14 03:47:22 +01:00
Jacek Becela
697ee1a50d
Enable loading fixtures from arbitrary locations. [ #586 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-14 01:32:01 +01:00
Tapajós
0d241f4434
Use full path in database tasks so commands will work outside of Rails root [ #612 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-13 14:19:03 -05:00
Joshua Peek
73b34e9f75
Refactor template preloading. New abstractions include Renderable mixins and a refactored Template class.
2008-07-12 14:33:46 -05:00
Daniel Guettler
f90eb81c65
Ensure script/generate finds generators from symlinked plugins. [ #449 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-12 17:51:48 +01:00
Michael Koziarski
292501c7e0
Use require_dependency 'application' not require in the console bootstraps to avoid requiring application.rb twice
2008-07-11 22:27:36 +02:00
Joshua Peek
c00baf496e
Added tests to show that 2d372d7 breaks old generator behavior ( #545 state:resolved)
2008-07-11 12:09:25 -05:00
Joshua Peek
f522a89d64
Revert "Fixed generator collisions for nested controller modules."
...
This reverts commit 2d372d704987e05712ccd937e78d8dbd41242efe.
2008-07-11 12:05:02 -05:00
Clemens Kofler
feb08984ea
Added notes to Routing documentation and routes.rb regarding defaults routes opening the whole application for GET requests
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-07-10 09:29:27 +02:00
Hongli Lai (Phusion
2b4eb586ef
Plugin locator: sort directory listing because we can't assume that the OS will do it for us. This fixes some unit test failures.
2008-07-09 13:34:36 +02:00
Pratik Naik
cb645c8877
Use ActiveSupport::TimeZone in time:zones rake tasks
2008-07-04 20:07:00 +01:00
Michael Koziarski
dc2d754d60
Support for custom annotations with rake notes:custom and DRY up the task definition.
...
e.g. rake notes:custom ANNOTATION=WTF
2008-07-03 19:42:58 +03:00
Joshua Peek
6c0edef26e
Added Rails.initialized? flag
2008-07-02 21:29:57 -05:00
Ricardo Santos
820992c98f
Ensure script/plugin unsource 'Usage' text is correct. [ #526 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 17:47:19 +01:00
Tim Pope
3a95ee73cf
Make rake test:uncommitted work with Git.
...
Note : rake test:uncommitted is considering only unstaged files.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 05:21:59 +01:00
Carl Porth
a81f16af31
Ensure Rails::Generator quotes file names while generating diff. [ #264 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 03:28:02 +01:00
Pratik Naik
76e00fc784
Ensure observer test inherits from ActiveSupport::TestCase
2008-06-27 18:18:39 +01:00
Pat George
4ddca325ee
Warn and uses singularized ModelName if a plural ModelName is given to script/generate. Override with --force-plural. [ #333 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-27 16:35:26 +01:00
Bob Klosinski
a93ea88c06
Added Thin support to script/server. [ #488 state:resolved]
2008-06-25 18:56:52 -07:00
Cheah Chu Yeow
f1cfd12487
Allow script/about to run in production mode instead of failing with a cryptic const_missing error.
...
[#370 state:resolved]
2008-06-23 10:27:33 -07:00
Jeremy Kemper
a02d672cd7
Horo rdoc template
2008-06-22 10:38:25 -07:00
Pratik Naik
2e232af91f
Add performance test generator
2008-06-19 20:13:45 +01:00
rick
10c581a6de
fix merge
2008-06-19 09:59:36 -07:00
Jeremy Kemper
15c3fc8da3
Add dummy pdoc task to railties
2008-06-18 20:34:24 -07:00
Jeremy Kemper
803f41e97a
Add lib/rails/*.rb to rdoc
2008-06-18 20:17:16 -07:00
Jeremy Kemper
231c2c5709
Update Rakefiles to connect to wrath as current user. Use ssh config to set a different user.
2008-06-18 19:58:26 -07:00
Jeremy Kemper
6ffe32160e
Rely on quieter db:test:load task
2008-06-17 16:01:48 -07:00
Jeremy Kemper
8e74a434b8
Don't dump schema for every test run, just when migrations are run
2008-06-16 03:47:15 -07:00
Jeremy Kemper
09c70a0c03
Use test/performance/test_helper to do test setup then boost log level and turn on caching
2008-06-15 16:21:32 -07:00
Jeremy Kemper
eab71208db
Performance: integration test benchmarking and profiling. [Jeremy Kemper]
2008-06-14 02:04:38 -07:00
Jeremy Kemper
579086047e
Remove superfluous test_process require
2008-06-12 18:19:40 -07:00
David Heinemeier Hansson
e536d4d888
Changed all generated tests to use the test/do declaration style [DHH]
2008-06-12 20:10:50 -05:00
Jeremy Kemper
fb14c88e39
Inflector -> ActiveSupport::Inflector
2008-06-10 14:02:38 -07:00
Joshua Peek
0c9281e821
Drop ActionController::Base.allow_concurrency flag
2008-06-08 22:11:50 -05:00
rick
51e4106dcc
Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen. [ #320 state:resolved]
2008-06-08 14:30:14 -04:00
rick
faad1e32a8
Fix discrepancies with loading rails/init.rb from gems. [ #324 state:resolved]
2008-06-08 14:04:04 -04:00
Jacek Becela
86a042ddd9
Make plugins initialize also from rails/init.rb to ensure consistency with gems used as plugins
...
[#272 state:resolved]
2008-06-08 13:05:45 -04:00
Joshua Peek
06b6f435cb
Wrap Initializer after_initialize inside mocha block.
2008-06-07 23:46:06 -05:00
Jeremy Kemper
1d1ea92f40
GemDependency#specification should be public
2008-06-06 20:41:22 -07:00
Pratik Naik
df8154c845
Fix that Rails::InfoController tests
2008-06-05 20:41:22 +01:00
Ryan Kinderman
ed0cb91a83
Ensure plugins' rake tasks are loaded before application's rake tasks. [ #259 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-05 12:44:38 +01:00
Joshua Peek
5fe2878973
Renamed StringQuestioneer to StringInquirer.
2008-06-04 15:06:32 -05:00
Joshua Peek
6e85f14817
Namespaced StringQuestioneer under ActiveSupport.
2008-06-04 15:02:51 -05:00
Joshua Peek
1e4fae42d4
Fixed deprecated call to Dependencies in plugin loader test.
2008-06-04 15:00:50 -05:00
David Heinemeier Hansson
82e96eb294
Dependencies move to ActiveSupport::Dependencies missed a few spots
2008-06-03 19:19:08 -05:00
David Heinemeier Hansson
8afa725f4b
Wrapped Rails.env in StringQuestioneer so you can do Rails.env.development? [DHH]
2008-06-03 17:44:56 -05:00
David Heinemeier Hansson
442d2f1032
Fixed that RailsInfoController wasnt considering all requests local in development mode (Edgard Castro) [ #310 state:resolved]
2008-06-02 21:55:42 -05:00
David Heinemeier Hansson
4b4aa8f6e0
AR can be disabled, new_rails_defaults.rb should check [ #303 state:resolved] (Jesper Hvirring Henriksen)
2008-06-02 18:43:08 -05:00
Joshua Peek
714d42d1a6
Fixed initializer tests by stubbing out gems dependencies check.
2008-06-02 10:40:01 -05:00
Joshua Peek
185fe2e9cc
In 9c4f003, gem installation quotes versions. Do the same for unpack and update tests to reflect the change.
2008-06-02 09:54:36 -05:00
Joshua Peek
a980eb8c77
Added Rack middleware to handle static files.
2008-06-01 13:18:31 -07:00
rick
71528b1825
Previously we only added the "lib" subdirectory to the load path when
...
setting up gem dependencies for frozen gems. Now we add the "ext"
subdirectory as well for those gems which have compiled C extensions
as well. [Wincent Colaiuta]
[#268 state:resolved]
2008-05-31 17:22:16 -07:00
David Heinemeier Hansson
f9db7695fe
Making ready for release of 2.1
2008-05-31 17:03:03 -07:00
rick
a6e7908327
fix doc typos
2008-05-31 16:46:47 -07:00
Dmitriy Timokhin
224c8e6afb
Expose GemPlugin load_paths so they can be added to Dependencies.load_paths. Also use full_gem_path as root of GemPlugin to make things compatible. [ #213 state:resolved]
2008-05-31 16:46:13 -07:00
rick
d5bcff172b
Consolidate error messages for missing gems, and skip them when running rake gems:* tasks. [rick]
2008-05-31 16:36:34 -07:00
rick
2506e5c9a7
Merge branch 'master' of git@github.com:rails/rails
2008-05-31 15:59:01 -07:00
rick
9c4f00350a
fix Gem installation command with versions
2008-05-31 15:58:08 -07:00
Tim Morgan
fb89d7fa6d
Run gem install as external command. [ #210 state:resolved]
2008-05-31 15:57:03 -07:00
David Heinemeier Hansson
f32bceeee1
Merge branch 'master' of git@github.com:rails/rails
2008-05-31 15:51:28 -07:00
David Heinemeier Hansson
9b75483bf3
Added better error message for when the class name is already used (and dont show suggestions if there are none)
2008-05-31 15:51:01 -07:00
Joshua Peek
3a9775076f
Removed suggestion for turning off partial updates.
2008-05-31 15:34:01 -07:00
Michael Koziarski
0abf0da001
Don't provide the password with dbconsole unless explicitly opted in.
...
Some operating system configurations allow other users to view your process list
or environmental variables. This option should not be used on shared hosts.
http://dev.mysql.com/doc/refman/5.0/en/password-security.html
http://www.postgresql.org/docs/8.3/static/libpq-envars.html
2008-05-31 15:30:26 -07:00
Tekin Suleyman
1b0654ea41
Ensure script/plugin installs ssh/git plugins. [ #277 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-29 20:21:49 +01:00
Pratik Naik
98dc582742
Merge docrails.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-25 12:29:00 +01:00
Michael Koziarski
5b8d0f134a
Mention partial updates in environment.rb to make it easier for people to opt-in if they know it's safe
2008-05-23 09:07:38 +12:00
Michael Koziarski
888d5059bd
Return Partial Updates to be purely opt in to prevent users from inadvertently corrupting data.
2008-05-23 09:00:46 +12:00
Lawrence Pit
c2036adf76
Show rails version when the server starts. [ #235 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-22 12:06:27 +01:00
Ryan Bates
4e084c3d98
Add Rails.version. [ #236 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-22 11:56:30 +01:00
Pratik Naik
46f30f902f
Merge documentation changes from docrails.
...
commit 0fc3381aa5359f31b36057d7bfba2e0eb6a3c064
Author: Xavier Noria <fxn@hashref.com>
Date: Fri May 16 23:44:51 2008 +0200
Conventions. Formatting. Revising docs all over the rails.
This revision encourages the modern resource-oriented form_for usage. In addition corrects some markup and other details.
commit 70e4bcf5cb039bea073851faed2df9f465e6f2f8
Author: Chris Kampmeier <chris@kampers.net>
Date: Fri May 16 12:09:46 2008 -0700
Fix a couple spelling errors in docs
commit 6ea5e4208f724b50e774e6a1af027336c3ee3de1
Author: Chris O'Sullivan <thechrisoshow@gmail.com>
Date: Fri May 16 16:09:11 2008 +0100
Added docs about source_type for has_one association
commit a01a0178be297b0eb62909819a15a01c6b69a841
Author: miloops <miloops@gmail.com>
Date: Wed May 14 09:22:39 2008 +0000
Change migration generator USAGE to explain the timestamped migrations behaviour
commit 4e2bc02163aa646ab1304b1b5bec98a7af8927f5
Author: Xavier Noria <fxn@hashref.com>
Date: Fri May 16 00:43:03 2008 +0200
minor revision in url_for docs
Made explicit that RESTful and controller/action styles are not interchangeable, and revised some markup.
commit d6ecce66f4e125531875006eea8022b73fe135b5
Author: Michael Hartl <michael@michaelhartl.com>
Date: Thu May 15 10:46:40 2008 -0700
Expanded and updated the link_to documentation
commit b8c46c86f0b785f6afc3c58eeb1b347543f5901e
Author: Cody Fauser <cody@jadedpixel.com>
Date: Wed May 14 09:10:02 2008 -0400
Improve and cleanup ActionMailer documentation
commit 9546ee299952c86329c4854f9b3776382c0575ff
Author: Yehuda Katz <wycats@gmail.com>
Date: Mon May 12 23:41:43 2008 -0700
Add documentation for Inflector.inflections
commit cbd5db8f5165f013069b02414f9bf762d88f619f
Author: Manik Juneja <mjuneja@manik-junejas-computer.local>
Date: Mon May 12 23:43:31 2008 +0530
minor changes in railties/README. Added dbconsole introduction
commit 130a280ddee1f96ccf378b52c17ee742b5e54f4a
Author: Gaurav Sharma <gaurav@norbauer.com>
Date: Mon May 12 18:00:19 2008 +0530
adding documentation for cached_attributes
commit 164c9586480f0a02522ea15ec7fb42c6a783a74d
Author: TomK32 <tomk32@tomk32.de>
Date: Mon May 12 10:59:33 2008 +0200
proper heading for "Example:"
commit 35634feb474cc55fbc95edeffe98cec241d45f23
Author: Matt Boehlig <thetamind@gmail.com>
Date: Sun May 11 16:46:07 2008 -0500
Cleanup whitespace and change_table documentation
commit 80bba28a1a56a0cafeb0fc94659905e88129bc31
Author: Xavier Noria <fxn@hashref.com>
Date: Sun May 11 02:54:02 2008 +0200
documented the source annotation extractor
commit e6823bb1650d9b0fea58bd2d355f388961a408b3
Author: Mike Mondragon <mikemondragon@gmail.com>
Date: Fri May 9 13:49:56 2008 -0700
Added additional information about processing email with ActionMailer and the strategy one might want to employ to do so.
commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0
Author: Xavier Noria <fxn@hashref.com>
Date: Thu May 8 23:49:36 2008 +0200
corrected and completed docs of increment/decrement/toggle in AR::Base
commit 2fead68b3192332eee27945ed95a94a64ca73f70
Author: Austin Putman <austin@emmanuel.local>
Date: Wed May 7 19:35:46 2008 -0700
Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing.
commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1
Author: Teflon Ted <github@rudiment.net>
Date: Wed May 7 16:08:49 2008 -0400
Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications.
commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb
Author: Sunny Ripert <negatif@gmail.com>
Date: Wed May 7 14:00:59 2008 +0200
Applied list conventions in AR::Base
commit 5bd18429f09d44e75191bec42a6db04bd33f3030
Author: Sunny Ripert <negatif@gmail.com>
Date: Wed May 7 13:53:35 2008 +0200
Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base
commit 2fa628e34b25166afb49e3afeea87e770ab84256
Author: Xavier Noria <fxn@hashref.com>
Date: Wed May 7 11:52:33 2008 +0200
revised details in Exceptions section of AR::Base docs
commit d912bd5672316454457ae83f6e9dda5197beeb6f
Author: Yaroslav Markin <yaroslav@markin.net>
Date: Wed May 7 13:50:28 2008 +0400
Add a filter_parameter_logging usage hint to generated ApplicationController.
This may help to remind the developer to filter sensitive information from application logs.
Closes #11578
commit f81d771f0657ae8375b84a77a059812cce5d6fd9
Author: Jack Danger Canty <git@6brand.com>
Date: Tue May 6 23:35:05 2008 -0700
doc: ActiveRecord::Reflection::AssociationReflection#through_reflection
Added documentation demonstrating the use of #through_reflection for
finding intervening reflection objects for HasManyThrough
and HasOneThrough.
commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db
Author: Cheah Chu Yeow <chuyeow@gmail.com>
Date: Wed May 7 13:47:41 2008 +0800
Document AttributeAssignmentError and MultiparameterAssignmentErrors.
commit 8f463550b597db2156b67733f31aed13487fbc3a
Author: John Barnette <jbarnette@gmail.com>
Date: Tue May 6 22:46:44 2008 -0700
Killing/fixing a bunch of outdated language in the AR README.
commit 284a930a93fbee16e25d06392779dbf2f03e9e12
Author: Jonathan Dance <jd@wuputah.com>
Date: Tue May 6 14:58:26 2008 -0400
improvements to the page caching docs
commit 9482da621390c874da7c921c8bd6230caae7035a
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 18:13:40 2008 +0200
validates_numericality_of() "integer" option really is "only_integer"
commit e9afd6790a8f530528f6597a7f59bb283be754f6
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 12:11:59 2008 +0200
Harmonized hash notation in AR::Base
commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 12:06:19 2008 +0200
Turned options into rdoc-lists in AR::Base
commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297
Author: Marshall Huss <mwhuss@Macbook.local>
Date: Sun May 4 23:21:33 2008 -0400
Added information of how to set element_name in the case the user has a name confliction with an existing model
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-16 23:21:35 +01:00
Kyle Hargraves
77f873acf2
dbconsole should not require a username for postgresql. [ #207 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-16 13:10:14 +01:00
Rodrigo Kochenburger
bca8751e40
Add ActiveRecord option to store the full class name on STI's type column, allowing one to have STI subclasses in different namespaces [ #114 ]
...
Signed-off-by: rick <technoweenie@gmail.com>
2008-05-13 15:04:11 -07:00
Amol Hatwar
2d372d7049
Fixed generator collisions for nested controller modules.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-05-13 16:02:56 -05:00
Joshua Peek
4562a5b57f
Add some test coverage for RailsControllerGenerator.
2008-05-13 15:50:06 -05:00
Tarmo Tänav
3fee2378ed
Use 'public' schema path when connecting to 'postgres' database. [ #170 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-13 18:25:30 +01:00
rick
74fd17346f
Merge branch 'master' of git@github.com:rails/rails
2008-05-13 09:41:10 -07:00
Tarmo Tänav
4dedc7ddca
Use 'postgres' database instead of 'template1'
...
The 'postgres' database is meant for use by utilities and third
party applications. CONNECT permission to the 'template1' database
is usually only available to superusers which is why 'postgres'
should be preferred as users whith "CREATE DATABASE" permissions
are not neccessarily superusers.
2008-05-13 17:34:47 +01:00
Matthew Brindley
9fb01ce4b1
ScaffoldGenerator to create public/stylesheets if missing. [ #165 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-13 10:50:00 +01:00
David Heinemeier Hansson
00640de861
Updated copyright years
2008-05-11 18:34:05 -05:00
David Heinemeier Hansson
b60c8a573e
Making ready for RC1 release
2008-05-11 18:29:44 -05:00
David Heinemeier Hansson
5d9c602698
Depend on latest Rake
2008-05-11 18:21:19 -05:00
Pratik Naik
80e18e759e
Ensure dbconsole respects erb in database.yml. [ #157 state:resolved] [Andrew Bennett]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-11 23:58:04 +01:00
David Heinemeier Hansson
7013d9e52a
Fix generate_app_doc task (Jaroslaw) [ #70 state:resolved]
2008-05-11 13:20:53 -05:00
rick
d09a8446d5
fix merge conflict with actionpack changelog
2008-05-10 17:46:55 -07:00
Pratik Naik
dc4eec1129
Merge docrails:
...
commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0
Author: Xavier Noria <fxn@hashref.com>
Date: Thu May 8 23:49:36 2008 +0200
Overall documentation improvement and markup corrections. Zillion changes.
commit 2fead68b3192332eee27945ed95a94a64ca73f70
Author: Austin Putman <austin@emmanuel.local>
Date: Wed May 7 19:35:46 2008 -0700
Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing.
commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1
Author: Teflon Ted <github@rudiment.net>
Date: Wed May 7 16:08:49 2008 -0400
Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications.
commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb
Author: Sunny Ripert <negatif@gmail.com>
Date: Wed May 7 14:00:59 2008 +0200
Applied list conventions in AR::Base
commit 5bd18429f09d44e75191bec42a6db04bd33f3030
Author: Sunny Ripert <negatif@gmail.com>
Date: Wed May 7 13:53:35 2008 +0200
Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base
commit d912bd5672316454457ae83f6e9dda5197beeb6f
Author: Yaroslav Markin <yaroslav@markin.net>
Date: Wed May 7 13:50:28 2008 +0400
Add a filter_parameter_logging usage hint to generated ApplicationController.
This may help to remind the developer to filter sensitive information from application logs.
Closes #11578
commit b243de0db3c2605121e055079854af5090d06374
Author: Jack Danger Canty <git@6brand.com>
Date: Tue May 6 23:39:47 2008 -0700
doc: disambiguating an example ActiveRecord class
commit f81d771f0657ae8375b84a77a059812cce5d6fd9
Author: Jack Danger Canty <git@6brand.com>
Date: Tue May 6 23:35:05 2008 -0700
doc: ActiveRecord::Reflection::AssociationReflection#through_reflection
Added documentation demonstrating the use of #through_reflection for
finding intervening reflection objects for HasManyThrough
and HasOneThrough.
commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db
Author: Cheah Chu Yeow <chuyeow@gmail.com>
Date: Wed May 7 13:47:41 2008 +0800
Document AttributeAssignmentError and MultiparameterAssignmentErrors.
commit 8f463550b597db2156b67733f31aed13487fbc3a
Author: John Barnette <jbarnette@gmail.com>
Date: Tue May 6 22:46:44 2008 -0700
Killing/fixing a bunch of outdated language in the AR README.
commit aca44bcd92ef783abdf484b58abdde6786db0f89
Author: Cheah Chu Yeow <chuyeow@gmail.com>
Date: Wed May 7 13:34:52 2008 +0800
Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout.
commit 284a930a93fbee16e25d06392779dbf2f03e9e12
Author: Jonathan Dance <jd@wuputah.com>
Date: Tue May 6 14:58:26 2008 -0400
improvements to the page caching docs
commit 9482da621390c874da7c921c8bd6230caae7035a
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 18:13:40 2008 +0200
validates_numericality_of() "integer" option really is "only_integer"
commit e9afd6790a8f530528f6597a7f59bb283be754f6
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 12:11:59 2008 +0200
Harmonized hash notation in AR::Base
commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 12:06:19 2008 +0200
Turned options into rdoc-lists in AR::Base
commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297
Author: Marshall Huss <mwhuss@Macbook.local>
Date: Sun May 4 23:21:33 2008 -0400
Added information of how to set element_name in the case the user has a name confliction with an existing model
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-09 10:40:50 +01:00
Jeremy Kemper
2561732a08
Some dbconsole tweaks. [ #102 state:resolved]
2008-05-07 13:54:02 -07:00
Jeremy Kemper
b510d8bfd8
Add script/dbconsole to app generator
2008-05-07 13:52:00 -07:00
Steve Purcell
4a07103687
Add 'script/dbconsole' -- the database analog of 'script/console'
2008-05-07 13:52:00 -07:00
Michael Koziarski
a08004a9a7
Merge branch 'master' of git@github.com:rails/rails
2008-05-06 20:53:56 +12:00
rick
92e2e5990c
include bugfix to [e792d4ab70448f79142fdf492390682ff5ea6398] for rubygems 1.0.1. Gem::DependencyList#dependency_order was bombing with nil specs passed in from a frozen gem. [ #122 ]
2008-05-06 01:20:59 -07:00
rick
123e55686d
Fix bug where plugin init.rb files from frozen gem specs weren't being run. (pjb3) [ #122 state:resolved]
2008-05-06 00:01:37 -07:00
Paul Barry
e792d4ab70
Added code to make initialization process call rails/init.rb for unpacked gems
2008-05-06 00:52:12 -04:00
Pete Deffendol
c26d10563e
PostgreSQL: update rake tasks to use full settings from database.yml
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-05-04 15:59:34 +12:00
Michael Koziarski
437f918646
Allow custom loggers to work with script/server.
...
Instead of requiring the initializer and initializing the logger, create the file manually before tailing it.
[atnan] Closes #8665 (trac)
2008-05-04 12:31:34 +12:00
Pete Deffendol
205750c8de
PostgreSQL: Connect to template1 database when creating or dropping db
...
* The template1 database is always available on a PostgreSQL install
* The previous behavior expected a database with the same name as the
connecting user, which may not be available
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#38 state:resolved]
2008-05-04 12:20:14 +12:00
Xavier Noria
64092de257
Improve documentation coverage and markup
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-02 14:45:23 +01:00
David Heinemeier Hansson
926f4648f0
Made the location of the routes file configurable with config.routes_configuration_file (Scott Fleckenstein) [ #88 state:resolved]
2008-05-01 17:26:31 -05:00
Hongli Lai (Phusion
1f2a4b37ac
Prevent AssetTagHelper from crashing if RAILS_ROOT is not defined. Fixes compatibility with Passenger. [ #84 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-05-01 12:45:03 -07:00
David Heinemeier Hansson
1282ddaadc
Fixed tabs to spaces [ #47 state:resolved]
2008-04-29 17:23:50 -05:00
Jeremy Kemper
90f6062f7d
run prepare callbacks after after_initialize blocks so config.to_prepare actually works
2008-04-28 12:02:50 -07:00
John Barnette
7f4171da5e
Be friendlier when upgrading apps with an old boot.rb.
...
If Rails doesn't respond to vendor_rails?, abort with an error asking
the user to run 'rake rails:update'.
Signed-Off-By: Michael Koziarski <michael@koziarski.com>
2008-04-28 09:16:13 +12:00
Joshua Peek
a0748848b6
Use .gitignore as the convention for dummy file names.
2008-04-24 09:20:04 -05:00
Francesc Esplugas
bf1b1e0925
Rails Edge info returns the latest git commit hash [ #36 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-22 15:44:13 -05:00
Joshua Peek
0a94f16b95
Fallback to Ruby's pseudo random number generator if the system does not have SHA512 installed.
2008-04-21 19:49:16 -05:00
Joshua Peek
de8b0087c6
Don't require generator_test_helper in RailsGeneratorTest.
2008-04-21 19:14:37 -05:00
Joshua Peek
6ccfc0ebde
Add .empty files to empty directories so git preserves them.
2008-04-21 19:09:46 -05:00
Cody Fauser
4809dcc1b5
* Remove default_url_options from mailer generator
...
* Improve mailer documentation regarding generating URLs
* Add no_match to mailer generator to warn contributors about default_url_options
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-21 14:31:54 -05:00
Joshua Peek
4ac33de4d6
Add back empty plugin folders that were lost when we moved to git.
2008-04-21 13:48:44 -05:00
Joshua Peek
1d09ccd949
Revert "Update plugin loading tests to reflect changes in plugin fixtures."
...
This reverts commit eef9002968609a0d8d4a8006aebcd6f18f993f4a.
2008-04-21 13:27:19 -05:00
Joshua Peek
eef9002968
Update plugin loading tests to reflect changes in plugin fixtures.
2008-04-21 13:24:38 -05:00
Joshua Peek
1642b2362e
Gem dependencies don't require a version. Also fixed up failing gem dependency tests.
2008-04-21 12:23:15 -05:00
Joshua Peek
1a29a67178
Mock RailsFCGIHandler and Dispatcher to stop mocha deprecation warnings.
2008-04-21 11:54:46 -05:00
Mislav Marohnić
69a5c1df82
Add example for default_url_options[:host] to generated mailers.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:19:28 -05:00
Mislav Marohnić
36eecda8d0
Changed mailer generator to not use instance variables.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:13:15 -05:00
Mislav Marohnić
dfdb9f738e
Cleanup generator tests by extracting repeated code into generator_test_helper. Add test for mailer generator.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:10:58 -05:00
Pratik Naik
986aec5dbb
Refactor Dispatcher callbacks to remove unnecessary Dependencies checks in production environment.
2008-04-18 13:05:43 +01:00
David Heinemeier Hansson
420c4b3d88
Added Rails.public_path to control where HTML and assets are expected to be loaded from (defaults to Rails.root + "/public") #11581 [nicksieger]
2008-04-13 17:33:27 -05:00
Geoffrey Buesing
cfd56882af
rake time:zones:local finds correct base utc offset for zones in the Southern Hemisphere
2008-04-12 16:06:29 -05:00
Michael Koziarski
6ed9e68e21
Allow freezing to specific releases with rake rails:freeze:edge RELEASE=1.2.0 per-release zip files are generated automatically by git-archive on dev.rubyonrails.org.
2008-04-12 12:08:26 +12:00
David Dollar
4364c361b5
Now that we have gems:unpack and gems:build allowing for integration of
...
100% of your gems into vendor/ it would be nice to have the ability to
automatically unpack the full dependency tree of your specified gems.
This patch adds the rake task gems:unpack:dependencies to do this.
Usage:
gems:unpack:dependencies # unpack all dependencies
gems:unpack:dependencies GEM=foo # unpack all dependencies for gem foo
2008-04-11 18:25:11 -04:00
Jeremy Kemper
4b17082107
rake rails:freeze:edge using http://dev.rubyonrails.org/archives/rails_edge.zip instead of Subversion
2008-04-10 22:15:50 -07:00
Rick Olson
95fdc82fb2
Require rubygems if needed when initializing GemDependency instances
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-09 16:24:32 +00:00
Rick Olson
0bea3f8391
Don't require rails/gem_builder during rails initialization, it's only needed for the gems:build task. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-08 04:21:32 +00:00
Rick Olson
7e94cf7f4d
set ActiveSupport.escape_html_entities_in_json = false for new rails apps
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-08 03:47:08 +00:00
Josh Peek
2cdc613598
script/performance/profiler compatibility with the ruby-prof >= 0.5.0. Closes #9176 . [Catfish]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-07 19:29:09 +00:00
Jeremy Kemper
cfe42ba1b1
Update fcgi dispatcher test cases. Closes #11471 [guillaume]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-03 20:00:33 +00:00
Rick Olson
8ff9e9365d
missed an added file
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-02 21:53:21 +00:00
Rick Olson
7d2316604a
Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. Closes #11513 [ddollar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-02 17:48:30 +00:00
Pratik Naik
6a36d96aa2
Fix that config.to_prepare dependency error. Closes #10520 [akaspick, Pratik]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-02 12:48:10 +00:00
Rick Olson
c4ccca1f84
spell check
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 20:55:45 +00:00
Rick Olson
e0402fe032
Add config.active_support for future configuration options. Also, add more new Rails 3 config settings to new_rails_defaults.rb [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 20:35:56 +00:00
David Heinemeier Hansson
6a74360f97
Use class << self
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 19:16:55 +00:00
David Heinemeier Hansson
4e07037afa
gems should be specified before plugins
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 17:15:31 +00:00
David Heinemeier Hansson
8f8f822fa6
Added examples for config.gem
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 17:13:05 +00:00
Jeremy Kemper
8f46ead1e9
Improving railties test coverage. Closes #11496 [miloops]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 16:54:30 +00:00
Jeremy Kemper
25eeea7197
PostgreSQL: use create_ and drop_database for rake tasks. Closes #9045 [ez, nicksieger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 05:01:33 +00:00
Pratik Naik
dc1166d12b
Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 02:09:52 +00:00
Jeremy Kemper
2681d55e40
Update generator tests. Closes #11487 [thechrisoshow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 00:29:24 +00:00
David Heinemeier Hansson
c4be0dbca9
Fixed charset/collation for rake db:create ( closes #11331 ) [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 21:16:17 +00:00
Rick Olson
cc2d6a0b93
Allow files in plugins to be reloaded like the rest of the application. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 06:53:44 +00:00
Jeremy Kemper
f6484e63c1
rename config/initializers/new_in_rails_3.rb to new_rails_defaults.rb
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 04:59:23 +00:00
Jeremy Kemper
6b9448cdd2
Partial updates include only unsaved attributes. Off by default; set YourClass.partial_updates = true to enable.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 01:10:04 +00:00
Jeremy Kemper
c3ce27fbaf
Handle exit, reload, and restart immediately if not processing a request. References #11471 [guillaume, Jeremy Kemper]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 23:07:52 +00:00
Rick Olson
c2ce69860a
whoops, typo in the CHANGELOG
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 18:22:31 +00:00
Rick Olson
65b4702c4f
Small tweak to allow plugins to specify gem dependencies. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9141 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 02:35:08 +00:00
Rick Olson
088ef182e3
Added config.gem for specifying which gems are required by the application, as well as rake tasks for installing and freezing gems. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9140 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 02:17:28 +00:00
David Heinemeier Hansson
3e73278020
Removed the default .htaccess configuration as there are so many good deployment options now (kept it as an example in README) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:45:39 +00:00
Jeremy Kemper
e8170805df
Generated tests rely on test dir in load path rather than File.dirname shenanigans. ruby -Itest test/unit/foo_test.rb to run a test by hand (that's a capital I as in Island).
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:41:10 +00:00
David Heinemeier Hansson
827b529459
Update welcome screen with revised instructions and removal of dead links
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:37:14 +00:00
David Heinemeier Hansson
968e022fc6
Space at the bottom feels better
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:02:40 +00:00
David Heinemeier Hansson
9ffbbd08bb
Removed outdated scaffold from template
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:01:49 +00:00
David Heinemeier Hansson
3704f4ba2e
Fix new migration versions
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 22:14:04 +00:00
David Heinemeier Hansson
c00de99f69
Switched to UTC-timebased version numbers for migrations and the schema. This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches ( closes #11458 ) [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 21:21:01 +00:00
David Heinemeier Hansson
4aca503d0e
Fixed that no gems installed would cause error ( closes #11459 ) [thechrisoshow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 19:52:02 +00:00
Geoff Buesing
c62db052a0
config.time_zone and TimeWithZone#marshal_load accept tzinfo/Olson identifiers
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 04:35:48 +00:00
Geoff Buesing
480a7581d4
Rails::Initializer#initialize_time_zone raises an error if value assigned to config.time_zone is not recognized. Rake time zone tasks only require ActiveSupport instead of entire environment
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 01:45:04 +00:00
David Heinemeier Hansson
d8823d6fb7
Stop adding the antiquated test/mocks/* directories and only add them to the path if theyre still there for legacy reasons [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9102 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-27 22:33:50 +00:00
David Heinemeier Hansson
8301ce4d0b
Added that gems can now be plugins if they include rails/init.rb ( closes #11444 ) [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-27 18:37:53 +00:00
David Heinemeier Hansson
6080943950
Missing test data
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-27 17:54:43 +00:00
David Heinemeier Hansson
f5b991d76d
Added Plugin#about method to programmatically access the about.yml in a plugin ( closes #10979 ) [lazyatom]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-27 17:47:51 +00:00
David Heinemeier Hansson
35d3ede974
New applications should use UTC as the default time zone
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-26 21:01:30 +00:00
Pratik Naik
ca9413674e
Improve documentation.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-26 12:27:52 +00:00
Geoff Buesing
ea285c2f78
Correct grammar in config.time_zone description in environment.rb
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-22 05:27:07 +00:00
David Heinemeier Hansson
3e556d3dbc
Use the more modern error_messages from the form object rather than error_messages_for
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-22 04:47:53 +00:00
Geoff Buesing
1ec8a7f4e0
Added config.time_zone = 'UTC' as a commented-out option in the default environment.rb
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9076 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-22 02:23:09 +00:00
Geoff Buesing
f921a96e85
Adding rake tasks time:zones:all, time:zones:us and time:zones:local for finding time zone names for config.time_zone option
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-22 01:59:09 +00:00
David Heinemeier Hansson
54213dadfd
Docfixes ( closes #11356 , #11172 , #10523 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-20 02:15:29 +00:00
David Heinemeier Hansson
d07d6e900c
Added support for installing plugins hosted at git repositories ( closes #11294 ) [danger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-17 21:44:16 +00:00
David Heinemeier Hansson
5b58bc1963
Removed dead styles ( closes #11353 ) [boone]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-15 19:33:13 +00:00
David Heinemeier Hansson
dd665ff967
Fixed that script/generate would not look for plugin generators in plugin_paths ( closes #11000 ) [glv]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-13 02:47:26 +00:00
David Heinemeier Hansson
9d4fa7c4a7
Applied the faster squish version ( closes #11123 ) [jordi]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-13 02:25:10 +00:00
Pratik Naik
3d2177df26
Fix database rake tasks to work with charset/collation and show proper error messages on failure. Closes #11301 [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-10 11:42:01 +00:00
Pratik Naik
e91d7ed53d
Update URL in script/generate usage. Closes #11220 [neshmi]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-08 12:55:57 +00:00
Michael Koziarski
01b77da8da
Patch to add a -e (export) option to script/plugin install. Closes #10847 [jon@blankpad.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-21 22:44:00 +00:00
Michael Koziarski
5b5d236792
Sort the results to remove platform dependent test failures
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-20 05:57:00 +00:00
Michael Koziarski
1a59aa5196
Update generated comments to reflect the fact that config.frameworks works fine with gems now. Closes #11135 [fxn]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-17 09:11:31 +00:00
Michael Koziarski
3028ca5955
Clear active connections before trying to drop the database. Allows db:drop to work with posgresql. Closes #10559 [jqr]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-15 23:16:01 +00:00
Michael Koziarski
9e13b966f6
Move SecretKeyGenerator comments to the correct place for rdoc. Closes #10940 [FooBarWidget]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-09 22:18:38 +00:00
Rick Olson
72385a7be6
Add Time Zone support to ActiveRecord, and config.time_zone property for specifying a default Time Zone. Closes #10982 [Geoff Buesing, rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-06 06:43:02 +00:00
Rick Olson
20bab5bc64
ensure that the after_initialize hooks are run after the application initializers have run
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-03 17:54:39 +00:00
Rick Olson
5ef2b089f0
Reshuffle load order so that routes and observers are initialized after plugins and app initializers. Closes #10980 [rick, fxn]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-02 20:18:18 +00:00
Jeremy Kemper
7527447ba1
Git support for script/generate. Closes #10690 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-02 02:55:14 +00:00
Michael Koziarski
9c4beb5e98
Tidy up description for the rake test task. Closes #10598 [akaspick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-20 23:27:19 +00:00
Jeremy Kemper
84b0f9c739
Introduce TemplateFinder to handle view paths and lookups. Closes #10800 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-19 03:20:39 +00:00
Michael Koziarski
4b7091f32a
Use non-blocking writing if available. Closes #10794 [lifofifo]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-13 20:39:51 +00:00
Rick Olson
3dd6027f70
Update scaffold to use labels instead of bold tags. Closes #10757 [zach-inglis-lt3]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-12 01:05:36 +00:00
Jeremy Kemper
3642a4d6f8
Resurrect WordNet synonym lookups. Closes #10710 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-10 02:50:43 +00:00
David Heinemeier Hansson
4ad3721a17
Re-enable the debugger in testing
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-09 18:50:06 +00:00
David Heinemeier Hansson
72bd4ff3e6
Show that a different cache store can be used
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8612 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-09 18:49:50 +00:00
Jeremy Kemper
fe66397adf
require abstract_unit directly since test is in load path
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:33:12 +00:00
Jeremy Kemper
dbed69249f
require abstract_unit directly since test is in load path
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:33:00 +00:00
Jeremy Kemper
5ccc3cf448
Move model dependency to the end of the scaffold generator manifest. Closes #10696 [drnic]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 00:26:27 +00:00
David Heinemeier Hansson
2a9ad9ccbc
Moved the caching stores from ActionController::Caching::Fragments::* to ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH] Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH] All fragment cache keys are now by default prefixed with the 'views/' namespace [DHH] Added ActiveRecord::Base.cache_key to make it easier to cache Active Records in combination with the new ActiveSupport::Cache::* libraries [DHH] Added ActiveSupport::Gzip.decompress/compress(source) as an easy wrapper for Zlib [Tobias Luetke] Included MemCache-Client to make the improved ActiveSupport::Cache::MemCacheStore work out of the box [Bob Cottrell, Eric Hodel] Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 21:05:12 +00:00
David Heinemeier Hansson
64b4c18e15
Refactor check for local databases ( closes #10539 ) [parcelbrat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 00:35:23 +00:00
David Heinemeier Hansson
f5aaf945b6
Added that rails:update is run when you do rails:freeze:edge to ensure you also get the latest JS and config files ( closes #10565 ) [jeff]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 00:14:47 +00:00
Rick Olson
14f6440ed6
Correct indentation in a couple spots. Closes #10671 [l.guidi, rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 19:24:44 +00:00
Jeremy Kemper
e21c48baf7
db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah Chu Yeow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 09:03:56 +00:00
Jeremy Kemper
072b9d9fba
SQLite: db:drop:all doesn't fail silently if the database is already open. Closes #10577 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 08:28:58 +00:00
Jeremy Kemper
07de7612bd
Don't make new_mongrel server default yet
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-29 19:43:39 +00:00
Jeremy Kemper
e2d4ebdea4
Introduce native mongrel handler and push mutex into dispatcher.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-27 11:17:05 +00:00
Jeremy Kemper
ef6784f761
Ruby 1.9 compat: initializer only sets kcode for Ruby < 1.9
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-22 04:50:27 +00:00
Jeremy Kemper
2556e67403
App generate says sqlite3 is the default and mentions frontbase. Closes #10550 [Cheah Chu Yeow, Will Cannings]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-21 03:39:25 +00:00
Jeremy Kemper
7f53d0485f
RubyGems 0.9.5 compat: always set the gem platform
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-19 04:21:24 +00:00
Jeremy Kemper
d7515d4b09
Ruby 1.9 compat: use .to_a instead of .map which now returns an enumerator
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-19 04:21:12 +00:00
Jeremy Kemper
16c3ec7b28
Simplify some rails info methods
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-19 04:21:02 +00:00
Jeremy Kemper
11a75f9a38
Ruby 1.9 compat: Update idiosyncratic block variable usage. Closes #10546 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-19 01:18:45 +00:00
Jeremy Kemper
ab9e4c0eaa
Ruby 1.9 compatibility. References #1689 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-17 18:54:55 +00:00
David Heinemeier Hansson
d7e6df43a9
Proper attribution in CHANGELOG
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:36:35 +00:00
David Heinemeier Hansson
69edebf0f1
Prepare for 2.0.2 release
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:30:30 +00:00
David Heinemeier Hansson
1427a49dc9
Doc fixing
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:27:05 +00:00
David Heinemeier Hansson
a50284d28f
Changed the default database from mysql to sqlite3, so now running "rails myapp" will have a config/database.yml thats setup for SQLite3 (which in OS X Leopard is installed by default, so is the gem, so everything Just Works with no database configuration at all). To get a Rails application preconfigured for MySQL, just run "rails -d mysql myapp" [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:22:56 +00:00
David Heinemeier Hansson
d8f2fea813
Turned on ActionView::Base.cache_template_loading by default in config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:10:48 +00:00
Jeremy Kemper
3df9fb53ac
More changelog updates
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-15 02:30:04 +00:00
Jeremy Kemper
70117b0294
Introduce (in /Users/jeremy/rails/git/trunk) to output a crytographically secure secret key for use with cookie sessions.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-15 02:27:56 +00:00
David Heinemeier Hansson
f60e3aa1ae
Fixed that local database creation should consider 127.0.0.1 local ( closes #9026 ) [parcelbrat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 22:32:54 +00:00
David Heinemeier Hansson
3486d54007
Fixed that functional tests generated for scaffolds should use fixture calls instead of hard-coded IDs ( closes #10435 ) [boone]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 18:09:14 +00:00
David Heinemeier Hansson
3aa54c5e44
Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431 , ( closes #10432 ) [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 17:51:02 +00:00