Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update test generators to use ActionDispatch::IntegrationTest | Abdelkader Boudih | 2015-12-15 | 1 | -0/+12 |
| | | | | | | | | | | | | In Rails 5.1 `ActionController::TestCase` will be moved out of Rails into it's own gem. Please use `ActionDispatch::IntegrationTest` going forward. This changes the generators to use `ActionDispatch::IntegrationTest` and the required URL setup (rather than symbols) for each of the controller actions. Updated fix to #22076. | ||||
* | fix NoMethodError that occurs when generating scaffold inside full mode engine | yuuji.yaginuma | 2015-06-28 | 1 | -0/+4 |
| | |||||
* | [ci skip] Fix the Rails::Generators::NamedBase#template doc | Roque Pinel | 2015-06-15 | 1 | -2/+2 |
| | | | | | Since #13612, `template` is no longer being used to generate migrations. | ||||
* | respect `pluralize_table_names` when generate fixture file. fixes #19519 | yuuji.yaginuma | 2015-03-27 | 1 | -0/+4 |
| | |||||
* | Fix description for application_name method - change simple to simply | Prathamesh Sonpatki | 2014-12-30 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 1 | -2/+2 |
| | |||||
* | Add FIXME note about the thor bug | Rafael Mendonça França | 2014-05-24 | 1 | -0/+2 |
| | |||||
* | Merge pull request #9083 from bronson/patch-1 | Rafael Mendonça França | 2014-05-24 | 1 | -1/+4 |
|\ | | | | | | | avoid using alias in generators | ||||
| * | avoid using alias in generators | Scott Bronson | 2013-01-25 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ruby's alias produces public methods, causing a spurious Thor task to be created. For example, this is the reason MigrationGenerator currently has two tasks: > ActiveRecord::Generators::MigrationGenerator.all_tasks.keys => ["singular_name", "create_migration_file"] singular_name was meant to be an attribute, not a task. Because it's public, it gets called as a task every time the generator is invoked. The fix is to ensure all generator methods have the correct visibility. | ||||
* | | avoiding iterations and calling of underscore on all elements of array | Akshay Vishnoi | 2013-11-17 | 1 | -1/+1 |
| | | |||||
* | | copy edits[ci skip] | Vijay Dev | 2013-05-19 | 1 | -3/+1 |
| | | |||||
* | | Added documentation for Rails::Generators::NamedBase.template | aditya-kapoor | 2013-05-14 | 1 | -0/+4 |
| | | |||||
* | | add require to suppress warning; remove variable | Vipul A M | 2013-04-04 | 1 | -1/+1 |
| | | |||||
* | | Add support for generate scaffold password:digest | Sam Ruby | 2013-03-13 | 1 | -0/+1 |
|/ | | | | | | | | | | * adds password_digest attribute to the migration * adds has_secure_password to the model * adds password and password_confirmation password_fields to _form.html * omits password entirely from index.html and show.html * adds password and password_confirmation to the controller * adds unencrypted password and password_confirmation to the controller test * adds encrypted password_digest to the fixture | ||||
* | Add GeneratedAttribute#column_name to get the name of the column in the | Rafael Mendonça França | 2012-12-10 | 1 | -1/+1 |
| | | | | database | ||||
* | Extract a attributes_names method to avoid duplication | Rafael Mendonça França | 2012-12-10 | 1 | -0/+7 |
| | |||||
* | Remove observers and sweepers | Rafael Mendonça França | 2012-11-28 | 1 | -2/+2 |
| | | | | | | | | They was extracted from a plugin. See https://github.com/rails/rails-observers [Rafael Mendonça França + Steve Klabnik] | ||||
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 1 | -4/+4 |
| | |||||
* | reduce number of Strings | Akira Matsuda | 2012-06-06 | 1 | -1/+1 |
| | |||||
* | Make method name consistent with existing methods | Andrew White | 2012-06-06 | 1 | -3/+3 |
| | |||||
* | Fixed the application_controller require_dependency path generated by the ↵ | Fred Wu | 2012-06-06 | 1 | -4/+5 |
| | | | | app generator | ||||
* | Fix generators to help with ambiguous `ApplicationController` issue | Piotr Sarnacki | 2012-05-20 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In development mode, dependencies are loaded dynamically at runtime, using `const_missing`. Because of that, when one of the constants is already loaded and `const_missing` is not triggered, user can end up with unexpected results. Given such file in an Engine: ```ruby module Blog class PostsController < ApplicationController end end ``` If you load it first, before loading any application files, it will correctly load `Blog::ApplicationController`, because second line will hit `const_missing`. However if you load `ApplicationController` first, the constant will be loaded already, `const_missing` hook will not be fired and in result `PostsController` will inherit from `ApplicationController` instead of `Blog::ApplicationController`. Since it can't be fixed in `AS::Dependencies`, the easiest fix is to just explicitly load application controller. closes #6413 | ||||
* | Don't indent blank lines in named base generators | Alexey Vakhov | 2012-04-25 | 1 | -1/+1 |
| | |||||
* | Updated/changed useless tr/gsubs | Jurriaan Pruis | 2012-04-03 | 1 | -1/+1 |
| | |||||
* | Remove key_value helper now that master is 1.9 only and we always use | Rafael Mendonça França | 2012-03-13 | 1 | -5/+0 |
| | | | | the 1.9 hash syntax in the generators. | ||||
* | Tidy up migration types. | José Valim | 2011-12-24 | 1 | -1/+1 |
| | |||||
* | added ability to specify from cli when generating a model/migration whether ↵ | Dmitrii Samoilov | 2011-12-24 | 1 | -3/+2 |
| | | | | particular property should be an index like this 'rails g model person name:string:index profile:string' | ||||
* | Get rid of more 1.8.x dead code | José Valim | 2011-12-20 | 1 | -7/+2 |
| | |||||
* | Get rid of --old-style-hash | José Valim | 2011-12-20 | 1 | -3/+0 |
| | |||||
* | Use namespace if it's a mountable engine | Stefan Sprenger | 2011-06-07 | 1 | -3/+1 |
| | |||||
* | initialize @inside_template | Akira Matsuda | 2011-05-18 | 1 | -0/+1 |
| | | | | fixes: "warning: instance variable @inside_template not initialized" | ||||
* | ADdd missing requires (thanks to @arunagw) | José Valim | 2011-05-07 | 1 | -0/+1 |
| | |||||
* | Add --old-style-hash option to force creating old style hash on Ruby 1.9 | Prem Sichanugrist | 2011-04-10 | 1 | -1/+4 |
| | | | | That means if you don't like the new syntax, you can pass --old-style-hash to force Rails to generate code with hash rockets. | ||||
* | Rails will now generate Ruby 1.9 style hash when running scaffold_controller ↵ | Prem Sichanugrist | 2011-04-10 | 1 | -0/+10 |
| | | | | | | | | generator on Ruby 1.9.x The new hash syntax of Ruby 1.9 looks more superior, so we decide to switch to it in the places that appropriate. This patch has been requested by DHH. | ||||
* | Fixed issue #6363, avoid to pluralized already pluralized names and ↵ | Timothy N. Tsvetkov | 2011-02-16 | 1 | -2/+2 |
| | | | | | | | | singularize a single in generators, for example stadia is a valid plural for stadium. But calling pluralize for stadia will return stadias which sematically is not corrent in this case [#6363 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Fix indentation and newlines in generated engine | Piotr Sarnacki | 2010-12-16 | 1 | -1/+1 |
| | |||||
* | Change inside_namespace method to inside_template and use it in all ↵ | Piotr Sarnacki | 2010-11-16 | 1 | -21/+20 |
| | | | | | | | | | | 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. | ||||
* | Bye bye bang bang. | Piotr Sarnacki | 2010-11-16 | 1 | -1/+1 |
| | |||||
* | Fix scaffold generator to be aware of namespace in isolated engine | Piotr Sarnacki | 2010-11-03 | 1 | -1/+7 |
| | |||||
* | Refactor a few methods connected with namespacing in ↵ | Piotr Sarnacki | 2010-09-25 | 1 | -8/+9 |
| | | | | | | Rails::Generators::NamedBase Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Rails.application is set anyway, we don't need to set it manually, this was ↵ | Piotr Sarnacki | 2010-09-25 | 1 | -1/+1 |
| | | | | | | purpose of different behavior in tests and in application Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Generators fix: properly check if module should be created when creating a ↵ | Piotr Sarnacki | 2010-09-25 | 1 | -1/+5 |
| | | | | | | namespaced model Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Refactor namespaced generators to use module_namespacing block helper | Piotr Sarnacki | 2010-09-24 | 1 | -13/+10 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Generators are not aware of namespace of isolated engines and applications | Piotr Sarnacki | 2010-09-24 | 1 | -2/+58 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Patch for Namespace problem in Scaffold. [#4763 state:resolved] | Mohammed Siddick.E | 2010-06-23 | 1 | -1/+17 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵ | Andrew White | 2010-06-20 | 1 | -0/+8 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use human_name in scaffold. | José Valim | 2010-03-17 | 1 | -0/+4 |
| | |||||
* | Change mailer generator templates and refactor the whole naming schema. | José Valim and Mikel Lindsaar | 2010-01-25 | 1 | -45/+34 |
| | |||||
* | Ensure generators can be invoked by their shortcut and remove attr_reader tasks. | José Valim | 2010-01-18 | 1 | -3/+5 |
| | |||||
* | Pass config.generators options along when RAILS_GENERATORS is set and show ↵ | José Valim | 2009-11-03 | 1 | -1/+4 |
| | | | | | | --force-plural message just once. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |