José Valim
33048b6e27
Solving merge conflicts.
2009-07-21 12:51:53 +02:00
José Valim
edda0bfe76
Allow nested and multiple fallbacks for generators.
2009-07-21 12:16:25 +02:00
José Valim
10fd021789
Change attributes default type to array to allow order to be preserved.
2009-07-21 12:00:02 +02:00
José Valim
c90419d4f4
Update db:sessions:create to use the proper generator.
2009-07-21 11:28:54 +02:00
Akira Matsuda
9d7aae7103
Ruby 1.9.2 compat: name method was renamed to __name__ since MiniTest 1.4.x [ #2922 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-07-21 01:15:51 -07:00
Akira Matsuda
9163b9ac9d
Ruby 1.9.2 compat: Use File#expand_path for require path because "." will not be included in LOAD_PATH since Ruby 1.9.2 [ #2921 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-07-21 00:09:39 -07:00
Joshua Peek
108545a9d6
Clean up validation example
2009-07-21 00:56:27 -05:00
Joshua Peek
574323df62
So you can require 'activemodel'
2009-07-21 00:52:50 -05:00
Joshua Peek
92c00d7586
AMo conversion helper
2009-07-21 00:51:57 -05:00
Joshua Peek
6944b391cd
Kill AMo Base
2009-07-21 00:13:26 -05:00
Joshua Peek
48bc39e03a
Improve AMo observing docs
2009-07-21 00:11:26 -05:00
Joshua Peek
7c84bbf160
Add wrap_with_notifications helper to AMo observing
2009-07-20 23:57:01 -05:00
Joshua Peek
2685d93b07
Kill AMo ivar attributes helper
2009-07-20 23:28:58 -05:00
Yehuda Katz + Carl Lerche
e7a2496fda
Vendor the bundler project
2009-07-20 18:03:38 -07:00
Yehuda Katz
d80316ad32
First effort at new Ajax helpers
2009-07-20 16:13:21 -07:00
Yehuda Katz
37658f15bb
Merge branch 'master' of git@github.com:rails/rails
2009-07-19 13:21:17 -07:00
Yehuda Katz
f2f5cdc8bc
Rename ActiveRecordHelper to ActiveModelHelper
2009-07-20 01:30:49 +09:00
Yehuda Katz
b00cac4adc
Finish convert_to_object updates
2009-07-20 01:22:24 +09:00
Yehuda Katz
13e18dd940
Update some tests and add a to_model to form helpers
2009-07-20 00:58:59 +09:00
Yehuda Katz
5ffaaa71d1
Define ActiveModel API Compliance
...
- Define to_model on AR
- Define to_model on ActiveModel::APICompliant
- Update test fixtures to be API Compliant
- Start using to_model in AP
2009-07-20 00:27:04 +09:00
Yehuda Katz
45d41d8012
Add some simple examples for unconventional AMo and AP use
2009-07-19 23:24:19 +09:00
Yehuda Katz
b20d68446d
Move default_form_builder to ActionView so it'll work in environments not using ActionView::Base
2009-07-19 22:31:55 +09:00
Yehuda Katz
0f2914be40
Separate ActionView::Context so something else can easily be made into an AV context
2009-07-19 22:31:44 +09:00
Yehuda Katz
bb530923bc
Simplify required "ActionView compliant" API
2009-07-19 21:53:02 +09:00
Sven Fuchs
17d5cc12b9
* don't include String#% for Ruby 1.9
...
* raise a KeyError exception for missing named interpolation args (like Ruby 1.9 does)
* raise an ArgumentError when mixing named and unnamed placeholders (like Ruby 1.9 does)
* improve docs and comply a bit more w/ Rails names/conventions
[#2870 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-07-18 11:27:27 -07:00
José Valim
d6a590a710
Modified rake tasks to use new app generator structure and updated Thor version.
2009-07-16 11:17:19 +02:00
José Valim
b03034a686
Update vendored Thor to have latest actions updates.
2009-07-16 10:16:23 +02:00
Szymon Nowak
1c11437a32
Add primary_key option to belongs_to association
...
[#765 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-07-15 18:13:32 -07:00
José Valim
fa5f7f7087
Merge branch 'master' of git://github.com/rails/rails
2009-07-16 00:28:33 +02:00
José Valim
e3d5364e41
Implemented generaators fallbacks.
2009-07-16 00:17:28 +02:00
José Valim
9c4ba74b7c
Change generators configuration to have a hash style.
2009-07-15 23:38:41 +02:00
Yehuda Katz
1a2946a6d9
Add some missing dependencies
2009-07-15 14:16:30 -07:00
Yehuda Katz
1273ffa186
Fix AbstractController::Layouts to work when included directly on a controller
2009-07-15 14:16:12 -07:00
Yehuda Katz
28508d444e
Centralize commonly used parts of AS in ActionController into action_controller.rb
2009-07-15 14:15:52 -07:00
José Valim
bcf754d8c4
Add a form hook to erb scaffold. Customize and go!
2009-07-15 22:43:25 +02:00
José Valim
8d47078a49
Added source_paths to rails generators. If a template is added to RAILS_ROOT/lib/templates/base/generator it will be used. For example, to customize edit.html.erb template on scaffold, just add a customized copy at RAILS_ROOT/lib/templates/erb/scaffold.
2009-07-15 22:37:22 +02:00
Lourens Naude
0920e69244
ActiveSupport Hash optimizations [ #2902 state:resolved]
...
Signed-off-by: Carl Lerche <carllerche@mac.com>
2009-07-15 13:23:05 -07:00
José Valim
b4ef958de6
Change false to :verbose => false as in new Thor version.
2009-07-15 20:16:37 +02:00
José Valim
baa4781ac7
Allow nil and false to be given as configuration values and avoid creating unecessary hashes.
2009-07-15 16:53:54 +02:00
José Valim
7022b58842
Allow namespaced configuration on generators.
2009-07-15 16:20:48 +02:00
José Valim
0702e04e0d
Refactored some generators to make use of improved invocations on thor.
2009-07-15 11:33:36 +02:00
José Valim
a06c825b46
Updated vendored Thor to 0.11.1 and update Rails::Generators.
2009-07-14 22:20:43 +02:00
José Valim
e96af1eaa2
Add version to thor frozen gem.
2009-07-14 15:44:14 +02:00
José Valim
925c9104e0
Copy Thor files instead of using as a submodule.
2009-07-13 23:21:47 +02:00
José Valim
5021dc69a4
Vendorized Thor.
2009-07-13 23:13:48 +02:00
José Valim
52673cd2ee
Added a generator generator.
2009-07-13 23:01:12 +02:00
Pratik Naik
40b387580f
Use map! instead of map for <association>_ids
2009-07-13 21:59:06 +01:00
José Valim
a5ab030ae4
Ensure non timestamped migrations are generated properly.
2009-07-13 22:26:58 +02:00
José Valim
25647f7021
Add some attribute readers to migration module.
2009-07-13 20:42:25 +02:00
José Valim
b9f4ea7198
Add hooks for integration and performance tests.
2009-07-13 18:29:40 +02:00