aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/test_unit/model/templates
Commit message (Collapse)AuthorAgeFilesLines
* Fix links in gemspec and docs from http to https.Abhay Nikam2019-03-091-1/+1
|
* Use .tt extension to all the template filesRafael Mendonça França2017-11-132-0/+0
| | | | | | | | Make clear that the files are not to be run for interpreters. Fixes #23847. Fixes #30690. Closes #23878.
* Remove frozen_string_literal magic comment from templatesyuuji.yaginuma2017-09-171-2/+0
| | | | Follow up of #30348
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* set association name to generated fixtures if attribute is referenceyuuji.yaginuma2016-02-061-1/+1
| | | | | | | It has been changed to require `belongs_to` by default in Rails 5. Therefore in order to pass the controller test, have association of set to fixtures. Fixes #23384
* remove extra spaces in fixtures doc partGaurav Sharma2015-12-131-2/+2
| | | | | | | | | | | ``` Every time when a fixture generate, it’s also generating improper doc. one: {} # column: value # two: {} # column: value ```
* Generated fixtures won't use parent_id when generated with parent:referencesPablo Olmos de Aguilera Corradini2015-01-021-0/+2
| | | | Fix #18301
* Update a broken link into the fixtures' templateRobin Dupret2013-06-291-1/+1
|
* Add support for generate scaffold password:digestSam Ruby2013-03-131-9/+7
| | | | | | | | | | * 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
* quote column names in generated fixture filesYves Senn2012-12-261-4/+4
|
* Make sure that no extra spaces are created with a non-polymorphicRafael Mendonça França2012-12-101-2/+6
| | | | attributes
* Add GeneratedAttribute#column_name to get the name of the column in theRafael Mendonça França2012-12-101-2/+2
| | | | database
* Deal with polymorphic attributes correctly in the generatorsRafael Mendonça França2012-12-101-0/+2
|
* Make references and belongs_to attributes to generate the _id column inRafael Mendonça França2012-12-101-2/+2
| | | | fixtures
* restores the API docs of AR::Fixtures, made a quick pass over them, revises ↵Xavier Noria2011-09-031-1/+1
| | | | link in fixture template [closes #2840]
* for ... in => .eachAkira Matsuda2011-05-181-3/+3
| | | | I believe this is more modern way
* Stop adding actual dummy tests (they clutter up the real ones in a new app), ↵David Heinemeier Hansson2011-04-231-4/+3
| | | | just show how its done
* revises links to the API websites of individual components (no longer ↵Xavier Noria2011-03-091-1/+1
| | | | maintained), and rewrites the section about after and around filters in the controller guide
* Add namespace for test_unit generatorsPiotr Sarnacki2010-09-251-0/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-232-0/+31
| | | | former since it's less obstrusive.
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-182-31/+0
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* Models with no attributes should just have empty hash fixtures [Sam] (Closes ↵David Heinemeier Hansson2009-12-171-5/+9
| | | | #3563)
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-242-0/+27