Michael Glaesemann
2007-Jun-14 21:47 UTC
skip-migration option for scaffold, resource generator
Hello! I often write my own migration generators to handle custom SQL. The -- skip-migration option for the model generator is very handy for these situations, but I miss this option for the scaffold and resource generators. I''ve posted a patch[1] that adds --skip-migration to the scaffold and resource generators with tests--with a new rails_resource_generator_test.rb file thrown in for good measure :) This is one of my first patches for Rails and welcome any feedback. If there''s anything I can do to make this patch more likely to be accepted, please let me know. Cheers, Michael Glaesemann grzm seespotcode net [1](http://dev.rubyonrails.org/ticket/8656) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Glaesemann
2007-Jun-23 15:49 UTC
Re: skip-migration option for scaffold, resource generator
On Jun 14, 2007, at 16:47 , Michael Glaesemann wrote:> Hello! > > I often write my own migration generators to handle custom SQL. The -- > skip-migration option for the model generator is very handy for these > situations, but I miss this option for the scaffold and resource > generators. > > I''ve posted a patch[1] that adds --skip-migration to the scaffold and > resource generators with tests--with a new > rails_resource_generator_test.rb file thrown in for good measure :) > > This is one of my first patches for Rails and welcome any feedback. > If there''s anything I can do to make this patch more likely to be > accepted, please let me know. > > Cheers, > > Michael Glaesemann > grzm seespotcode net > > [1](http://dev.rubyonrails.org/ticket/8656)I''ve noticed that josh updated the ticket to include [PATCH] in the summary, but I haven''t seen any other activity on this patch. As far as I know, there''s no way to make this change via monkey-patching[2], which would help as a clean workaround while this patch is unapplied. If there''s anything I can do to move this patch forward, please let me know! Cheers, Michael Glaesemann grzm seespotcode net [2](http://thread.gmane.org/gmane.comp.lang.ruby.rails/141559/) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
> > This is one of my first patches for Rails and welcome any feedback. > > If there''s anything I can do to make this patch more likely to be > > accepted, please let me know.Applied. Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Glaesemann
2007-Jun-23 22:33 UTC
Re: skip-migration option for scaffold, resource generator
On Jun 23, 2007, at 13:27 , DHH wrote:> Applied. Thanks!No problem! Thanks for applying! Michael Glaesemann grzm seespotcode net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---