Commit Graph

16212 Commits

Author SHA1 Message Date
Carlhuda
dedb842fda It would be nice to actually commit test fixtures 2010-04-30 16:25:40 -07:00
Carlhuda
785493ffed Provide a mechanism for overriding the entire generator via a class that handles the individual elements of generating a new Rails application 2010-04-30 13:48:06 -07:00
Carlhuda
0761d1b0f7 Set up app generator class to make it easier to for alt-stacks to override targeted areas 2010-04-30 13:48:06 -07:00
Jeremy Kemper
1d2257deeb Merge remote branch 'technoweenie/http_token_authentication'
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-30 13:46:37 -07:00
Xavier Noria
1ff954aaea after_(commit|rollback) rdoc, edit pass 2010-04-30 21:35:03 +02:00
Xavier Noria
f5fa13cca1 guides index: punctuation 2010-04-30 21:22:57 +02:00
wycats
21c1fbb6c1 Add generators to the guides and break out an extensions section 2010-04-30 11:50:37 -07:00
wycats
0fe8827bf3 Merge branch 'master' of github.com:rails/rails 2010-04-30 11:17:58 -07:00
rick
8d236ccb84 add HTTP Token Authorization support to complement Basic and Digest Authorization. 2010-04-30 07:46:30 -07:00
José Valim
6b559474fb Depend on the I18n 0.4.0.beta. 2010-04-30 16:22:18 +02:00
Norman Clarke
f0e754e713 Delegate Inflector.transliterate to i18n. [#4508 state:resolved]
Ancillary changes: Moved Chars#normalize into a class method; removed
unused UTF_PAT constant.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-30 16:18:12 +02:00
Lawrence Pit
60504e62c8 to_xml with :include should skip_instruct on the included records [#4506 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-30 14:22:57 +02:00
Neeraj Singh
a003a39bac removing the extra assignment statement [#4432 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-30 13:20:14 +02:00
Neeraj Singh
883f27aa9a test cases for record.to_xml [#458 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-30 13:19:30 +02:00
José Valim
34908e4a66 Updated the generators guide. 2010-04-30 12:50:42 +02:00
José Valim
cde168edbb Update generators to use thor 0.13.6 with simpler source_root handling. 2010-04-30 12:42:12 +02:00
José Valim
7b98d2aa59 Reorganize the mailer generator a bit. 2010-04-30 12:11:38 +02:00
Brian Durand
d2a49e4b1f Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix.
[#2991]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-29 18:26:19 -07:00
Carlhuda
c54c84b7b4 Move ActionMailer generator to AM 2010-04-29 16:45:57 -07:00
José Valim
b0a53c86ef Update thor dependency to 0.13.5 2010-04-29 23:25:40 +02:00
Brian Durand
da840d13da Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction.
[#2991 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-29 12:24:15 -07:00
Jeremy Kemper
20f0e9f320 Fix docs typo: app.middlewares -> app.middleware 2010-04-29 11:43:09 -07:00
Jeremy Kemper
fef31be2bc Add missing deprecation requires 2010-04-29 11:34:48 -07:00
Neeraj Singh
f4d174b211 making rake:migrate VERSION=0 a noop called in succession. [#2137 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-29 13:41:35 +02:00
Neeraj Singh
68c96fad55 Fix form builder and form helpers inconsistencies [#4432 state:resolved]
* datetime_select and select_datetime should be consistent as much as possible
* date_select and select_date should be consistent as much as possible
* time_select and select_time should be consistent as much as possible

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-29 13:40:55 +02:00
José Valim
3dfcb56e45 ActiveRecord middlewares should be inserted before AD::Cascade [#4493 state:resolved]. 2010-04-29 13:24:35 +02:00
Ravinder Singh
e9a9ef094e warn user if options are given before application name [#3435 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-29 13:00:17 +02:00
Neeraj Singh
d793d30776 ActionCachingTestController rescues from all exceptions. Making sure that all the tests check for valid response. [#4468 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-29 12:48:34 +02:00
José Valim
2e9af3638d Move several configuration values from Hash to ActiveSupport::XmlMini, which both Hash and Array depends on.
Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array.
2010-04-29 12:42:42 +02:00
José Valim
1bea5c755c Ops. Rename performance to profiler. 2010-04-29 09:31:06 +02:00
Neeraj Singh
580dd3b052 array.to_xml should be able to handle all types of data elements [#4490 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-29 09:04:34 +02:00
José Valim
1b816d5024 The rake task :environment now loads config/environment.rb instead of initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks. 2010-04-29 08:39:52 +02:00
Ernie Miller
e33d304975 Fix eager loading of associations causing table name collisions
[#4463 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-28 20:28:51 -07:00
Jeremy Kemper
4e75cc59e7 object_id may be negative, producing an invalid symbol. h/t Markus Schirp 2010-04-28 15:20:35 -07:00
José Valim
209ab7e05b Fix failing test. 2010-04-28 23:42:55 +02:00
Santiago Pastorino
3afa4847d9 failing test for: validates_acceptance_of overrides database fields
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-28 23:35:13 +02:00
Santiago Pastorino
ce48b3103a Makes validates_acceptance_of to not override database fields [#4460 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-28 23:12:03 +02:00
Xavier Noria
b9ab4c780a Merge commit 'rails/master' 2010-04-28 13:41:21 -07:00
Jeremy Kemper
22184930ea Bundle json and yajl-ruby gems for AS::JSON testing 2010-04-28 09:02:45 -07:00
Cezary Baginski
1067a7be52 Fix BigDecimal JSON encoding test. [#4495 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-28 09:02:03 -07:00
Jeremy Kemper
fe93cd8bc5 Fix prototype grep depending on JSON encoding regexp as JavaScript regexp 2010-04-27 22:52:37 -07:00
rohit
8f1a5bfee1 readability fixes to two paras in Refactorization 2010-04-28 11:21:45 +05:30
rohit
edcbd33785 replaced <b> tag with <strong> tag in samples 2010-04-28 10:48:55 +05:30
rohit
9dea2f4d8e fixed para for better readability 2010-04-28 10:43:36 +05:30
rohit
56c48f8136 Fixed incomplete para 2010-04-28 10:38:06 +05:30
Curtis Hawthorne
7e06494e32 Destroy respects optimistic locking.
Now works with :dependent => :destroy and includes unit tests for that
case.  Also includes better error messages when updating/deleting stale
objects.

[#1966 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-27 21:53:51 -07:00
Nathan Weizenbaum
ef5dadaf93 Only run load hooks once a file has been fully loaded.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-27 21:37:40 -07:00
rohit
c6a8337851 added notice to all samples of show.html.erb of posts controller 2010-04-28 08:09:27 +05:30
rohit
033b1e68c0 added views dir to list of created things 2010-04-28 08:06:28 +05:30
Jeremy Kemper
7100c9d6ca Switch driver to pg. [#3635 state:resolved] 2010-04-27 17:08:01 -07:00