Piotr Sarnacki
ced8ebcee0
Change inside_namespace method to inside_template and use it in all templates by default
...
The initial implementation of namespacing was based on wrong
assumptions. Namespacing path and class names in templates
should be based on current namespace and skip_namespace attribute,
but it should be not necessary to wrap content on all the templates
into additional block methods.
2010-11-16 16:38:14 +01:00
Piotr Sarnacki
4da6d95604
Bye bye bang bang.
2010-11-16 00:04:35 +01:00
Piotr Sarnacki
d0d30e767d
Fix scaffold generator to be aware of namespace in isolated engine
2010-11-03 20:48:40 +01:00
Piotr Sarnacki
0134c5cc94
Refactor a few methods connected with namespacing in Rails::Generators::NamedBase
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 17:28:10 +02:00
Piotr Sarnacki
135d6164c5
Rails.application is set anyway, we don't need to set it manually, this was purpose of different behavior in tests and in application
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 10:46:22 +02:00
Piotr Sarnacki
00aa13bc0e
Generators fix: properly check if module should be created when creating a namespaced model
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-25 10:46:22 +02:00
Piotr Sarnacki
bac0826b1f
Refactor namespaced generators to use module_namespacing block helper
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 21:02:30 +02:00
Piotr Sarnacki
e83634081a
Generators are not aware of namespace of isolated engines and applications
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-24 21:02:24 +02:00
Mohammed Siddick.E
7008911222
Patch for Namespace problem in Scaffold. [ #4763 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-23 09:30:55 +02:00
Andrew White
ed3f042e99
Make polymorphic_url and scaffolding work with uncountable resources [ #3930 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:15:41 +02:00
José Valim
7a5da21481
Use human_name in scaffold.
2010-03-17 00:09:43 +01:00
José Valim and Mikel Lindsaar
9cb3ca1d29
Change mailer generator templates and refactor the whole naming schema.
2010-01-25 13:20:32 +01:00
José Valim
a2e2e73c5e
Ensure generators can be invoked by their shortcut and remove attr_reader tasks.
2010-01-18 16:21:10 +01:00
José Valim
d627c932bd
Pass config.generators options along when RAILS_GENERATORS is set and show --force-plural message just once.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 18:22:05 -08:00
Yehuda Katz + Carl Lerche
f0dd77c6be
Move railties/lib/* into railties/lib/*
2009-09-24 16:11:41 -07:00