1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/generators
Aleksey Magusev 94b230e189 Add polymorphic option to model generator
For instance,

    $ rails g model Product supplier:references{polymorphic}

generate model with `belongs_to :supplier, polymorphic: true` association and appropriate migration.

Also fix model_generator_test.rb#L196 and #L201
2012-06-27 18:12:28 +04:00
..
actions_test.rb Use new hash syntax for generators gem method 2012-05-22 13:26:06 +04:00
app_generator_test.rb Fix app_generator_test with the changes introduced at 2012-05-30 22:46:53 -03:00
assets_generator_test.rb Remove unnecessary comment. 2012-05-23 11:45:08 +03:00
controller_generator_test.rb Move Coffee generators and templates to Coffee Railtie and create javascript_engine ("js") for apps that remove Coffee gem 2011-06-29 21:16:09 -03:00
generated_attribute_test.rb Add polymorphic option to model generator 2012-06-27 18:12:28 +04:00
generator_generator_test.rb Allow to generate namespaced generators [#6140 state:resolved] 2010-12-16 01:49:28 +05:30
generators_test_helper.rb Using load_generators 2011-05-25 13:13:24 +05:30
helper_generator_test.rb be sure to parenthesize the arguments when the first one is a RegExp literal 2011-05-18 23:20:19 +09:00
integration_test_generator_test.rb Remove the laziness from the middleware stack. 2010-06-03 23:32:10 +10:00
mailer_generator_test.rb Get rid of more 1.8.x dead code 2011-12-20 17:59:26 +01:00
migration_generator_test.rb Usage file in generators shouldn't be fetched only based on source_root 2012-04-01 23:51:18 +02:00
model_generator_test.rb Add polymorphic option to model generator 2012-06-27 18:12:28 +04:00
named_base_test.rb Add convenience method to hide a generator from the available ones 2012-02-03 10:18:58 -02:00
namespaced_generators_test.rb Fixed the application_controller require_dependency path generated by the app generator 2012-06-06 19:02:11 +10:00
observer_generator_test.rb be sure to parenthesize the arguments when the first one is a RegExp literal 2011-05-18 23:20:19 +09:00
orm_test.rb added tests, replaced classify with constantize - using classify here cuts the last 's' in ORM name 2011-11-26 19:57:51 +01:00
performance_test_generator_test.rb Remove the laziness from the middleware stack. 2010-06-03 23:32:10 +10:00
plugin_new_generator_test.rb Merge pull request #6681 from arunagw/plugin_gen_fix 2012-06-08 10:25:29 -07:00
resource_generator_test.rb Remove --http. 2012-03-14 22:30:01 +01:00
scaffold_controller_generator_test.rb Remove --http. 2012-03-14 22:30:01 +01:00
scaffold_generator_test.rb fix scaffold_generator_test.rb and model_generator_test.rb 2012-04-16 12:10:39 +05:30
session_migration_generator_test.rb Revert table_name= needs connection now, so just stub table_name 2012-03-07 02:37:40 +09:00
shared_generator_tests.rb Fix build for railties generators 2012-05-02 17:31:29 +05:30
task_generator_test.rb Rake tasks generator with test 2011-12-17 16:42:35 +04:00