Carl Lerche
bd53ebde72
Add required dependencies on activemodel
2009-09-01 12:26:00 -07:00
Carl Lerche
016b1d3596
Merge branch 'master' of git@github.com:rails/rails
2009-09-01 12:19:09 -07:00
José Valim
da636809da
Assert primary key does not exist in habtm when the association is defined, instead of doing that everytime a record is inserted.
...
[#3128 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-09-01 10:15:23 -07:00
Joshua Peek
c5f6e038da
ActionPack test helpers need to activate rack gem
2009-09-01 10:27:19 -05:00
Joshua Peek
ad49895fe8
Railties test helpers need to activate rack gem
2009-09-01 10:05:17 -05:00
Geoff Buesing
cc1efe7e5a
Rails::Info doesn't require version for unwanted frameworks
...
[#3124 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-09-01 02:29:22 -07:00
Bryan Helmkamp
a5588ffc08
Activate rack-test gem before it's required. This shouldn't be necessary, but should fix the build for now
2009-08-31 23:17:43 -07:00
Joshua Peek
a79790e1a5
rack-test 0.4.2 has rack 1.1.pre goodies, we'll use it instead
2009-08-31 23:08:20 -05:00
Joshua Peek
426e76ad85
Temp rack-test gem needs proper gem source
2009-08-31 21:53:24 -05:00
Joshua Peek
14870257c1
Initializer middleware helper needs to require actioncontroller
2009-08-31 21:09:39 -05:00
Yehuda Katz
67f5d611f5
Add rake gemspec and gemspecs to the repo
2009-08-31 17:20:44 -07:00
Joshua Peek
66d713fc8f
License, version, and gemspec for ActiveModel. Ship it!
2009-08-31 19:09:16 -05:00
Joshua Peek
ffd2cf1670
To make CI happy, use my edge rack-test gem (just for now)
2009-08-31 15:46:29 -05:00
Joshua Peek
b4068c12eb
Restore rack gem dependency
2009-08-31 15:40:08 -05:00
Joshua Peek
5e5e34377c
Back off rack 1.1-pre and bundle in the new testing goodies
2009-08-31 15:39:19 -05:00
Joshua Peek
8974ab2e2e
action_dispatch and action_view are just more autoloads, so its okay to require them
2009-08-31 14:49:59 -05:00
Joshua Peek
c63dac81c1
Switch over to rack-test gem
2009-08-31 14:27:10 -05:00
Joshua Peek
6f40139b53
SessionHash#update and SessionHash#delete are missing a call to load! [ #3056 state:resolved]
2009-08-31 13:39:06 -05:00
Kane
cf9f361699
added proc and symbol support to validates_numericality_of [ #3049 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-08-31 13:35:14 -05:00
Yehuda Katz
7e3abbfdc2
Merge commit 'jose/generators'
2009-08-31 11:07:37 -07:00
Jay Pignata
7316d029e6
Duplicating the options hash in Date#advance to prevent modification of the original [ #1133 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-08-31 13:02:19 -05:00
Josh Sharpe
80989437dc
I added this feature so that a Map of changed fields could be retrieved
...
after a model had been saved. This is useful in the after_save callback
when you need to know what fields changed. At present there is no way
to do this other than have code in the before_save callback that takes
a copy of the changes Map, which I thought was a bit messy.
Example.
person = Person.find_by_name('bob')
person.name = 'robert'
person.changes # => {'name' => ['bob, 'robert']}
person.save
person.changes # => {}
person.previous_changes # => {'name' => ['bob, 'robert']}
person.reload
person.previous_changes # => {}
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-08-31 12:50:27 -05:00
Jay Pignata
57f7308da4
Changing plugin loader to use blocks instead of Symbol#to_proc to ensure tests run without activesupport
...
[#3118 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-30 17:01:59 -07:00
Antonio Tapiador del Dujo
cf4846c6ae
I18n support for plugins
...
Rails will now automatically add locale files found in any engine's locale
directory to the I18n.load_path (i.e. files that match the glob pattern
"config/locales/**/*.{rb,yml}" relative to engine directories).
[#2325 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-30 13:36:22 -07:00
José Valim
d8d83e7821
Change div.attribute to div.field and add some _form to tests.
2009-08-30 18:49:54 +02:00
José Valim
0efedf2a30
Ensure scaffold works properly even if plural name is given. [ #3062 ]
2009-08-30 17:58:20 +02:00
José Valim
5096ba961c
Remove inline css. [ #593 status:resolved]
2009-08-30 17:04:16 +02:00
José Valim
5d645c271b
Change scaffold to use _form as partial and div's instead of paragraphs. [ #1760 status:resolved]
2009-08-30 16:53:23 +02:00
David Calavera
0fc5c59b37
Rails templates git command runs inside another directory [ #2466 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2009-08-30 16:25:07 +02:00
Rodrigo Rosenfeld Rosas
0f9675a872
Fix spelling in Rails 'generator' generator. [ #3080 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2009-08-30 16:18:21 +02:00
José Valim
72c6ea1022
Update vendored thor.
2009-08-30 16:16:53 +02:00
Chad Woolley
d8e7ff12a8
CI config updates: do not send CI emails unless explicitly enabled, use 'gem update --system', and send emails from an address which can post to the core list
...
[#3116 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-30 00:06:07 -07:00
Chad Woolley
22e946873c
Send CI notifications to core list.
...
* Only send emails on official box.
* Update CI setup docs to correct hostname instructions.
[#3063 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-29 13:09:46 -07:00
José Valim
3f78de67b5
Ensure that blocks are also handled inside the responder.
2009-08-29 18:21:19 +02:00
José Valim
684a6b3c71
Attempt to render the template inside the responder, so it can be used for caching and pagination.
...
Signed-off-by: Yehuda Katz <wycats@gmail.com >
2009-08-29 11:01:00 -05:00
Carl Lerche
22d5e3d89d
Make sure all needed files get added to the rails gem
2009-08-29 10:13:52 -05:00
Yehuda Katz
dbf20c2dbb
Initial AMo Lint implementation
2009-08-29 01:49:18 -05:00
Yehuda Katz
353157ccd9
Make rake install work
2009-08-28 18:05:02 -05:00
Jeremy Kemper
f6ca7e4e75
Prefer utf8_unicode_ci (better) over utf8_general_ci (faster)
2009-08-27 23:07:43 -07:00
Jeffrey Hardy
c10396b142
When running multiple test tasks, don't abort early if one produces failures
...
[#3107 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-27 11:20:51 -07:00
Joshua Peek
ba5995dcd9
Reset session in integration tests after changing routes to reload the middleware stack
2009-08-27 12:43:26 -05:00
Yehuda Katz
f3ed0de340
Create an install task that successfully installs all Rails gems
2009-08-27 05:00:57 -05:00
Yehuda Katz
bb91beabbd
Remove some old cruft
2009-08-27 05:00:57 -05:00
Carl Lerche
6a001e925e
Require necessary active_support files in cookie store
2009-08-26 23:07:55 -07:00
Carl Lerche
4467fa7d24
Fixed stupid mistake... nothing to see here.
2009-08-26 20:51:54 -07:00
Carl Lerche
78ced08338
Add a default parameter for Resolver#initialize
2009-08-26 19:52:18 -07:00
Carl Lerche
2890760665
Set the request and response in ActionController::Middleware
2009-08-26 19:52:18 -07:00
Carl Lerche
efbd535f36
Have AbstractController::Logger#process_action return super's value
2009-08-26 19:52:17 -07:00
Jeffrey Hardy
8c05ca96f8
Don't use AR::Base.connection for fixture column quoting. Use the connection given to Fixtures.new
...
[#3104 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-26 14:53:09 -07:00
Jeffrey Hardy
0821941598
Eliminate warnings from Regexp multiline extension tests
...
[#3103 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-26 14:47:29 -07:00