aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
Commit message (Collapse)AuthorAgeFilesLines
* Fix testSantiago Pastorino2012-04-161-2/+2
|
* fix scaffold_generator_test.rb and model_generator_test.rbArun Agrawal2012-04-162-8/+6
| | | | Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081
* "rails new -h" shows message in rails directoryask2012-04-091-0/+10
|
* Usage file in generators shouldn't be fetched only based on source_rootPiotr Sarnacki2012-04-012-1/+5
| | | | | | | | In case `source_roout` is not set, `default_source_root` is used, which includes also `templates` directory. If there is no `templates` directory, `default_source_root` is not available and USAGE will not be displayed. USAGE should be also checked based on default directory excluding `templates`.
* Avoid another blank line in generated migration and remove assertion as per ↵Marcelo Silveira2012-03-211-1/+0
| | | | @spastorino request
* Merge pull request #5532 from mhfs/migration_blank_lineJosé Valim2012-03-211-0/+1
|\ | | | | Remove blank line from generated migration
| * Remove blank line from generated migrationMarcelo Silveira2012-03-201-0/+1
| |
* | Generate Migration Thats Adds Removed IndexTravis Jeffery2012-03-211-0/+18
|/ | | | | When generating a migration that removes a field with an index, the down will add both the field and its index.
* Build fix for app_generator_test.rbArun Agrawal2012-03-181-1/+1
|
* Remove --http.José Valim2012-03-143-76/+0
|
* Do not generate app/views and sprockets entries on http appCarlos Antonio da Silva2012-03-141-1/+16
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Generate special controller and functional test templates for http appsCarlos Antonio da Silva2012-03-142-0/+43
| | | | | | | | | | | | The main goal is to not generate the format.html block in scaffold controller, and to generate a different functional test as we don't rely on redirects anymore, we should test for http responses. In addition to that, the :edit action is removed from the http controller and the edit route is not generated by default, as they usually do not make sense in this scenario. [Carlos Antonio da Silva & Santiago Pastorino]
* Rename http-only app generator option to httpCarlos Antonio da Silva2012-03-141-5/+5
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Remove duplicated tests from shared generatorCarlos Antonio da Silva2012-03-142-16/+2
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Generate middleware http_only! config when running http only app generatorCarlos Antonio da Silva2012-03-141-0/+6
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Add http-only option to Rails app generatorCarlos Antonio da Silva2012-03-141-0/+10
| | | | | | | Change application controller template accordingly, to inherit from ActionController::HTTP and not generate protect_from_forgery call. [Carlos Antonio da Silva & Santiago Pastorino]
* The sprockets railtie was moved to sprockets/rails/railtieGuillermo Iguaran2012-03-131-1/+1
|
* Refactor the test_unit scaffold generator to use the key_value methodRafael Mendonça França2012-03-132-8/+8
|
* Use the attributes hash explicitlyRafael Mendonça França2012-03-132-6/+26
|
* Do not use the attributes hash in the scaffold functional testsRafael Mendonça França2012-03-122-2/+9
|
* Revert table_name= needs connection now, so just stub table_namekennyj2012-03-071-1/+1
|
* Only add the whitelist_attributes option if ActiveRecord is presentRafael Mendonça França2012-03-041-0/+6
|
* Whitelist all attribute assignment by default.Michael Koziarski2012-03-051-0/+10
| | | | Change the default for newly generated applications to whitelist all attribute assignment. Also update the generated model classes so users are reminded of the importance of attr_accessible.
* Fix tests, table_name= needs connection now, so just stub table_namePiotr Sarnacki2012-03-041-1/+1
|
* uses PATCH for the forms of persisted records, and routes PATCH and PUT to ↵Xavier Noria2012-02-241-5/+0
| | | | the update action of resources
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-221-0/+5
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* Add convenience method to hide a generator from the available onesCarlos Antonio da Silva2012-02-031-0/+9
| | | | | | It is usually useful to be able to hide a generator when running rails generate command. Such generators might be used only to dry up generators code and shouldn't be available to end users.
* Fix GH #4737. Missing helper file (LoadError) in mountable plugin.kennyj2012-02-021-7/+8
|
* Don't run bundle install when passed with --pretend optionkennyj2012-02-011-0/+5
|
* Only add ActiveRecord configuration if it is presentRafael Mendonça França2012-01-311-0/+1
|
* has_many/has_one, :dependent => :restrict, deprecation added.Manoj2012-01-291-0/+5
|
* Support decimal{1,2} and decimal{1-2} and decimal{1.2} so it works fine with ↵José Valim2012-01-221-3/+3
| | | | | | | | bash, zsh, etc, closes #4602 Conflicts: railties/test/generators/migration_generator_test.rb
* Add therubyracer gem commented in default GemfileGuillermo Iguaran2012-01-121-4/+2
|
* Fix tests, ./ is not needed for relative entries in Gemfile in newest ↵Piotr Sarnacki2012-01-071-2/+2
| | | | bundler version
* Add Gemfile entry when creating a plugin in application's directoryPiotr Sarnacki2012-01-071-1/+32
| | | | | | | | | | | | After vendor/plugins were removed from rails, the new method to create plugins is to create gem plugins. Most of the time if you create a new plugin in rails application's directory, you want to extract something from that application and use it immediately, ie. add such line to Gemfile: gem 'foo', :path => './vendor/foo' This commit makes plugin new generator to add such line automatically.
* Rails::Plugin has goneSantiago Pastorino2012-01-032-38/+0
|
* Use 1.9 hash syntax instead.José Valim2011-12-242-13/+13
|
* assert_not_match -> assert_no_match.José Valim2011-12-242-6/+6
|
* Tidy up migration types.José Valim2011-12-243-3/+8
|
* added ability to specify from cli when generating a model/migration whether ↵Dmitrii Samoilov2011-12-243-1/+131
| | | | particular property should be an index like this 'rails g model person name:string:index profile:string'
* Depend on 4.0.0.beta gems. Use https for github urls.Jeremy Kemper2011-12-221-1/+1
|
* Get rid of more 1.8.x dead codeJosé Valim2011-12-203-19/+4
|
* Get rid of --old-style-hashJosé Valim2011-12-203-45/+4
|
* Warning removed in testArun Agrawal2011-12-181-1/+1
|
* No need 'abstract_unit' here. It's already in 'generators_test_helper'Arun Agrawal2011-12-182-2/+0
|
* Merge pull request #4009 from kirs/generate-rake-taskPiotr Sarnacki2011-12-171-0/+12
|\ | | | | Rake tasks generator
| * Rake tasks generator with testKir2011-12-171-0/+12
| |
* | strip whitespace errors from the generated GemfileAaron Patterson2011-12-121-0/+10
| |
* | Skip assets options in environments files when --skip-sprockets is usedGuillermo Iguaran2011-12-111-0/+7
| |
* | Merge pull request #3925 from guilleiguaran/extra-test-for-therubyrhinoYehuda Katz2011-12-091-1/+5
|\ \ | | | | | | Add test to verify that therubyrhino isn't included when JRuby isn't used