aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/resource_helpers.rb
Commit message (Collapse)AuthorAgeFilesLines
* [Railties] require_relative => requireAkira Matsuda2017-10-211-2/+2
| | | | This basically reverts 618268b4b9382f4bcf004a945fe2d85c0bd03e32
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* [Railties] require => require_relativeAkira Matsuda2017-07-011-2/+2
|
* s/an/a/Akira Matsuda2017-01-261-1/+1
| | | | [ci skip]
* Privatize unneededly protected methods in RailtiesAkira Matsuda2016-12-251-0/+2
|
* Describe what we are protectingAkira Matsuda2016-12-231-0/+2
|
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* code gardening: removes redundant selfsXavier Noria2016-08-081-1/+1
| | | | | | | | | A few have been left for aesthetic reasons, but have made a pass and removed most of them. Note that if the method `foo` returns an array, `foo << 1` is a regular push, nothing to do with assignments, so no self required.
* applies remaining conventions across the projectXavier Noria2016-08-061-1/+0
|
* applies new string literal convention in railties/libXavier Noria2016-08-061-6/+6
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Use public Module#include, in favor of https://bugs.ruby-lang.org/issues/8846robertomiranda2015-01-311-1/+1
| | | | ref: https://github.com/rails/rails/pull/18763#issuecomment-72349769
* Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-2/+2
|
* Add warning when user tried to create model with pluralize name.Kuldeep Aggarwal2014-02-231-11/+2
| | | | | 1. Generate model with correct_name. 2. It will help new users to avoid mistakes when tried to create model with wrong name.
* moving controller_name assignment before model name conditionanilmaurya2014-01-201-3/+1
|
* Added --model-name option scaffold_controller_generator.yalab2013-10-151-5/+20
|
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-1/+1
|
* update Rails::Generators docs [ci skip]Francesco Rodriguez2012-10-071-3/+1
|
* Updated/changed useless tr/gsubsJurriaan Pruis2012-04-031-1/+1
|
* added tests, replaced classify with constantize - using classify here cuts ↵Jakub Kuźma2011-11-261-1/+1
| | | | the last 's' in ORM name
* allow using orm_instance without invoking orm_class first in generatorsJakub Kuźma2011-11-261-1/+1
|
* Warnings removed when running with 1.9.3Arun Agrawal2011-10-091-1/+1
|
* Railties typos.R.T. Lechow2011-03-051-1/+1
|
* Merge remote branch 'drogus/plugin_new'José Valim2010-11-111-2/+2
|\ | | | | | | | | Conflicts: railties/test/generators/app_generator_test.rb
| * Fix scaffold generator to be aware of namespace in isolated enginePiotr Sarnacki2010-11-031-2/+2
| |
* | The model generator shouldn't throw warnings when using mass nouns [#5363 ↵Jeff Kreeftmeijer2010-11-111-1/+1
|/ | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-231-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Change mailer generator templates and refactor the whole naming schema.José Valim and Mikel Lindsaar2010-01-251-20/+23
|
* Ensure generators can be invoked by their shortcut and remove attr_reader tasks.José Valim2010-01-181-3/+7
|
* Pass config.generators options along when RAILS_GENERATORS is set and show ↵José Valim2009-11-031-1/+7
| | | | | | --force-plural message just once. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* By default use ActiveModel API in controller generators, unless otherwise ↵José Valim2009-10-171-12/+5
| | | | specified [#3123 status:resolved]
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+74