aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12048 from tjouan/app_generator-bin_perms-umaskAaron Patterson2013-08-271-1/+1
| | | | | | Comply with current umask when generating new app Conflicts: railties/lib/rails/generators/rails/app/app_generator.rb
* Merge pull request #10448 from arunagw/bug-fix-scaffold-generator-masterRafael Mendonça França2013-05-041-0/+2
| | | | | | | | | | Fixes Scaffold generator with --assets=false Conflicts: railties/CHANGELOG.md Conflicts: railties/CHANGELOG.md railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb
* Use secure source in generated Gemfile for creating new plugin. Closes #10245Prathamesh Sonpatki2013-04-171-1/+1
|
* `name` should be public.Aaron Patterson2013-02-241-12/+12
|
* update directory tree in the generated READMEAkira Matsuda2013-01-041-8/+8
| | | | [ci skip]
* backport #8616, quote column names in generated fixture filesYves Senn2012-12-262-2/+14
| | | | | | | | | Conflicts: railties/CHANGELOG.md railties/lib/rails/generators/test_unit/model/model_generator.rb railties/lib/rails/generators/test_unit/model/templates/fixtures.yml railties/test/generators/model_generator_test.rb
* backport #8262, require bundler groups to include rake-tasks in enginesYves Senn2012-11-191-1/+1
| | | | | | | | | | | | If you generate a full engine, this will include rake tasks from your gem under the `app` namespace. For example if you have a dependency on `rspec-rails` in your engine's `gemspec`. You will get the task `app:spec` Closes #8229 Conflicts: railties/CHANGELOG.md
* backport #8139, `plugin new` adds dummy app tasks when necessary. …Yves Senn2012-11-152-2/+6
| | | | | | | | | | | The `plugin new` generator always adds the dummy app rake tasks, when a dummy app was created. Closes #8224 Conflicts: railties/CHANGELOG.md
* Fixes issue #6251David Padilla2012-11-151-1/+1
| | | | | | | Plugin generator crashes when using the --dummy-path option Code was assuming the application name in `config/application.rb` was module Dummy.
* Merge pull request #6450 from iHiD/resource_generator_routes_masterRafael Mendonça França2012-10-011-4/+41
| | | | | | | | Master branch: Fixed generated whitespace in routes when using namespaced resource. Merge pull request #7811 from iHiD/resource_generator_routes_master Fix the build (Broken scaffold routes test)
* We need to have 1-0-stable for joureny gem in edgeArun Agrawal2012-08-241-2/+2
| | | | | Problem : Edge rails can't bundle Fixes #7437
* Use `:data => { :confirm => "Text" }` syntax instead of `:confirm` atRafael Mendonça França2012-08-021-1/+1
| | | | | | | the ERB scaffold generator. We are trying to teach the data attributes as best practices and `:confirm` will be deprecated in 4.0.
* Revert "Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` ↵Rafael Mendonça França2012-08-011-1/+1
| | | | | | | | | | | option" Revert "Deprecate `:disable_with` in favor of `'data-disable-with'` option for `button_to` and `submit_tag` helpers." This reverts commit fc092a9cba5fceec38358072e50e09250cf58840. This reverts commit e9051e20aeb2c666db06b6217954737665878db7. This reverts commit d47d6e7eda3aa3e6aa28d0c17ac6801234bb97d1. This reverts commit 21141e777bdce8534e3755c8de7268324b3d8714.
* Merge pull request #7147 from pferdefleisch/scaffold_controller_docsRafael Mendonça França2012-07-311-4/+3
| | | | Updated scaffold_controller generator docs #7146
* Use strict_args_position! if available from ThorJosé Valim2012-06-181-0/+1
|
* Don't add sqlite3 to gemspec with -O on rails plugin newPiotr Sarnacki2012-06-081-0/+2
| | | | (closes #6672)
* We should not include engine.rake file into rakeArun Agrawal2012-06-081-1/+1
| | | | | | | | | | if we are passing -T which is skip_test_unit See issue #6673 for more details. I saw that we are not creating dummy app even if we do skip_test_unit. Fixes #6673
* Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` optionCarlos Galdino2012-06-051-1/+1
| | | | | | | | | | | | This deprecation applies to: `button_to` `button_tag` `image_submit_tag` `link_to` `submit_tag` As :confirm is an UI specific option is better to use the data attributes, teaching users about unobtrusive JavaScript and how Rails works with it.
* remove unneeded blank line from !namespeced? controller generatorsAkira Matsuda2012-06-012-2/+2
|
* Changed symbol platform to platforms for the commented out call to gem ↵Martin O'Connor2012-05-301-1/+1
| | | | | | | 'therubyracer'. Dependency.rb expects the symbol to be named :platforms as opposed to platform. RubyMine's inspections indicate that the symbol should be named :platforms. Updating tests.
* Use require_dependency in generated controllersPiotr Sarnacki2012-05-222-2/+2
| | | | | | | Using require in development mode will prevent required files from reloading, even if they're changed. In order to keep namespaced application_controller reloadable, we need to use require_dependency instead of require.
* Fix generators to help with ambiguous `ApplicationController` issuePiotr Sarnacki2012-05-203-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Changing the indentation level of the block comment close for SASS Brian Cardarella2012-05-151-1/+1
| | | If one wants to use use SASS for application.css.sass the comment block indentation is invalid.
* Default escape_html_entities_in_json to true in new appsJosé Valim2012-05-141-2/+2
|
* Update railties/lib/rails/generators/rails/app/templates/config/application.rbEgor Homakov2012-05-141-0/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add hook for add_resource_routeSantiago Pastorino2012-04-182-7/+14
|
* Replace ruby-debug19 which doesnt work on 1.9.3 out of the box with a more ↵Aditya Sanghi2012-04-171-1/+1
| | | | maintained debugger gem
* Fix code example in generator test casePrem Sichanugrist2012-04-121-2/+2
|
* Usage file in generators shouldn't be fetched only based on source_rootPiotr Sarnacki2012-04-021-4/+17
| | | | | | | | 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`.
* Changed the config.assets.manifest to nil in the comments in the production ↵Anuj Dutta2012-03-281-1/+1
| | | | config template.
* adding a branch to arelAaron Patterson2012-03-271-2/+2
|
* Rubyracer does not work on ruby, so add it to Gemfile with :ruby platform onlyPiotr Sarnacki2012-03-171-1/+1
|
* Check for existence of exactly the called `fixture_path=` methodPiotr Sarnacki2012-03-151-2/+2
|
* Use Ruby 1.8 hash syntaxRafael Mendonça França2012-03-131-1/+1
|
* Use the attributes hash explicitlyRafael Mendonça França2012-03-132-6/+18
|
* Do not use the attributes hash in the scaffold functional testsRafael Mendonça França2012-03-132-2/+11
|
* Fixed problem when fixture_path is not always defined (incidentally, only ↵Philip Arndt2012-03-131-1/+3
| | | | when ActiveRecord is according to test_help.rb).
* Fixes issue #5193 using the instructions provided in the issue.Philip Arndt2012-03-131-0/+3
|
* Only add the whitelist_attributes option if ActiveRecord is presentRafael Mendonça França2012-03-041-1/+1
| | | | | | | Conflicts: railties/test/generators/app_generator_test.rb railties/test/isolation/abstract_unit.rb
* Whitelist all attribute assignment by default.Michael Koziarski2012-03-051-1/+1
| | | | 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.
* --edge option should generate app with rails 3-2-stableGuillermo Iguaran2012-02-071-1/+1
|
* Add branch to sass-rails and coffee-rails for apps generated with --dev or ↵Guillermo Iguaran2012-02-061-2/+2
| | | | --edge options (3.2.x)
* Fix GH #4749. Remove branch options, because edge is not 3-2-stable.kennyj2012-02-011-2/+2
|
* clarification to prevent confusing newbies; Passenger/Unicorn are app ↵Michael de Silva2012-01-311-1/+1
| | | | servers, Apache/Nginx are the web servers along with thin a la Heroku etc.
* Merge pull request #4601 from carlosantoniodasilva/patch-1José Valim2012-01-231-0/+1
|\ | | | | Add missing require to Array#wrap in generators action methods
| * Add missing require to Array#wrap in generators action methodsCarlos Antonio da Silva2012-01-221-0/+1
| |
* | Support decimal{1,2} and decimal{1-2} and decimal{1.2} so it works fine with ↵José Valim2012-01-221-2/+2
|/ | | | bash, zsh, etc, closes #4602
* Merge pull request #4451 from guilleiguaran/add-therubyracer-commentedJosé Valim2012-01-131-2/+14
|
* minor editsVijay Dev2012-01-132-2/+2
|
* Depend on coffee-rails 3.2.1Santiago Pastorino2012-01-051-1/+1
|