Pratik Naik
e52affb210
Add :env and :sudo options to TemplateRunner#rake.
...
Examples :
rake("gems:install", :sudo => true)
rake("db:migrate", :env => "production")
2008-12-04 01:08:36 +01:00
Pratik Naik
ef0b1cbb1b
Make TemplateRunner#generate accept any number of arguments
2008-12-03 22:05:54 +01:00
Joshua Peek
7c0dfa35db
Register bogus template handlers for ActionMailer test fixtures
2008-12-03 13:58:47 -06:00
Joshua Peek
761a633a9c
Add Memoizable#flush_cache to clear the cache of a specific method [ #1505 state:resolved]
2008-12-03 10:57:35 -06:00
Joshua Peek
2fc6c7dd05
Validate template extensions [ #1187 state:resolved]
2008-12-03 10:57:35 -06:00
Jeremy Kemper
99f2cb4918
Merge branch 'master' of git@github.com:rails/rails
2008-12-03 10:32:30 -06:00
Jeremy Kemper
0b4858cf38
Require rack/utils explicitly
2008-12-03 10:23:58 -06:00
Jeremy Kemper
3db59ce0dc
Unnecessary CGI require
2008-12-03 10:23:43 -06:00
Jeremy Kemper
f54ae9a997
Fix failsafe response path. [ #1504 state:committed]
2008-12-03 10:23:02 -06:00
Joshua Peek
1e1056f643
Removed deprecated register_template_extension
2008-12-02 20:26:32 -06:00
Pratik Naik
be75cb8877
Remove docs for TemplateRunner#gem as the behaviour has been changed
2008-12-02 19:48:25 +01:00
Jeremy McAnally
e8cc4b116c
Add "-m/--template" option to Rails generator to apply template to generated application.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-02 19:39:11 +01:00
miloops
2014d9141a
Make new_record? an alias of new? in ActiveResource to fix problem with route generation in forms.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-12-02 15:27:16 +01:00
David Heinemeier Hansson
bf024b6a11
Github comments are an excellent way to perform community code review -- keep it up!
2008-12-01 23:06:29 -06:00
Aliaksey Kandratsenka
a0bc480e1d
establish mysql connection before dropping database
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#63 state:committed]
2008-12-01 21:38:30 +01:00
Michael Koziarski
a8fc494dbb
Manually load the DB config rather than firing the whole initializer [Gerrit Kaiser]
2008-12-01 21:38:30 +01:00
Joshua Peek
06ed8e4511
Add internal middleware stack to Dispatcher
...
config.middleware.use Rack::Cache
2008-12-01 13:49:34 -06:00
Matt Jones
3c07a8828e
handle missing dependecies in gem loading
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-12-01 20:42:46 +01:00
Darren Boyd
0a4a5f3129
Making the IP Spoofing check in AbstractRequest#remote_ip configurable.
...
Certain groups of web proxies do not set these values properly. Notably,
proxies for cell phones, which often do not set the remote IP information
correctly (not surprisingly, since the clients do not have an IP address).
Allowing this to be configurable makes it possible for developers to choose
to ignore this simple spoofing check, when a significant amount of their
traffic would result in false positives anyway.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1200 state:committed]
2008-12-01 20:40:18 +01:00
miloops
97403ad5fd
Add :having option to find, to use in combination with grouped finds. Also added to has_many and has_and_belongs_to_many associations.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1028 state:committed]
2008-12-01 20:22:31 +01:00
Foliosus
0c4ba90aa1
Removed extra 'as' in :joins clause for habtm preloading
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1405 state:committed]
2008-12-01 20:00:19 +01:00
Tekin Suleyman
dab78e55cf
Ensure ActionMailer doesn't blow up when a two argument proc is set for the asset host
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1394 state:committed]
2008-12-01 19:38:25 +01:00
Andrew Kaspick
bda55f82c6
allow options to be passed to email address auto generation
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1418 state:committed]
2008-12-01 19:27:03 +01:00
Joshua Peek
25f6524b89
opps, inner_app is in the wrong conditional
2008-12-01 12:24:02 -06:00
Joshua Peek
61958032d3
Generate rackup dispatcher with rails:update:generate_dispatchers
2008-12-01 12:21:18 -06:00
Joshua Peek
725928854d
fix failing railties test
2008-12-01 12:12:57 -06:00
Joshua Peek
926844e869
Switch FCGI handler over to Rack
2008-12-01 11:54:32 -06:00
David Heinemeier Hansson
119a41e21d
Merge branch 'master' of git@github.com:rails/rails
2008-11-30 20:06:41 -06:00
Jeremy Kemper
eb5e6fe713
Simplify Request#path
2008-11-30 17:24:36 -08:00
Jeremy Kemper
4fabc9b2f3
Simplify REMOTE_ADDR parsing
2008-11-30 17:06:11 -08:00
Jeremy Kemper
93456a2ed2
Deprecated formatted_polymorphic_url
2008-11-30 17:04:24 -08:00
David Heinemeier Hansson
3b3c0507e2
Extracted the process scripts (inspector, reaper, spawner) into the plugin irs_process_scripts [DHH]
2008-11-30 16:23:20 -06:00
David Heinemeier Hansson
be140e8c6b
Changed Rails.root to return a Pathname object (allows for Rails.root.join("app", "controllers") => "#{RAILS_ROOT}/app/controllers") [ #1482 ]
2008-11-30 15:59:30 -06:00
David Heinemeier Hansson
668872efd8
Add restart notice where missing
2008-11-30 15:54:44 -06:00
David Heinemeier Hansson
6e66e7d646
Even more polish of the default configration files and split off the session store configuration into its own file
2008-11-30 15:53:21 -06:00
David Heinemeier Hansson
c5f461d7b0
Cleanup the app generator
2008-11-30 15:52:50 -06:00
David Heinemeier Hansson
73213f4ca7
Say it briefly
2008-11-30 15:18:46 -06:00
David Heinemeier Hansson
6358e6c107
More organization based on priority
2008-11-30 15:06:55 -06:00
David Heinemeier Hansson
471f024018
Me loves me some whitespace
2008-11-30 14:58:42 -06:00
David Heinemeier Hansson
201b64b4e1
Cleanup other examples and wording
2008-11-30 14:53:22 -06:00
David Heinemeier Hansson
0eac9daa0a
Rails::Configuration never had more details. Stop lying about it
2008-11-30 14:46:11 -06:00
David Heinemeier Hansson
5c26b2e47b
Its no longer common to run Rails in environments where you cant set the environment to be the production one. Dont need a notice telling about the ENV var that prominently any more
2008-11-30 14:44:56 -06:00
Jeremy Kemper
cfb2126726
Load app initializers by path relative to Rails.root
2008-11-29 20:06:49 -08:00
Jeremy Kemper
635e2ccd3e
Extract named_helper module_eval so it's easier to override
2008-11-29 19:32:13 -08:00
Jeremy Kemper
9e4621d6f7
Merge branch 'master' of git@github.com:rails/rails
2008-11-29 19:23:31 -08:00
Jeremy Kemper
8521cebbad
Turn on debugger autoeval
2008-11-29 16:55:02 -08:00
Sven Fuchs
1182658e76
Make sure #compute_public_path caching allows to return different results for different given sources [ #1471 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-11-29 16:03:44 -06:00
Joshua Peek
cec8a92a6d
Merge branch 'master' of git@github.com:rails/rails
2008-11-29 15:59:47 -06:00
David Heinemeier Hansson
fdfcdf4673
Enhanced Rails.root to take parameters that'll be join with the root, like Rails.root('app', 'controllers') => File.join(Rails.root, 'app', 'controllers') [ #1482 state:committed] (Damian Janowski)
2008-11-29 10:57:36 +01:00
David Heinemeier Hansson
1e8f9634f6
Include Rack in the server noise
2008-11-29 10:45:52 +01:00