aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #17302 from ↵Rafael Mendonça França2014-10-182-4/+4
| | | | | | claudiob/replace-slower-block-call-with-faster-yield Replace (slower) block.call with (faster) yield
* Revert "Replace (slower) block.call with (faster) yield"Zachary Scott2014-10-182-4/+4
| | | | This reverts commit 0ab075e75f58bf403f7ebe20546c7005f35db1f6.
* Replace (slower) block.call with (faster) yieldclaudiob2014-10-182-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Performance optimization: `yield` with an implicit `block` is faster than `block.call`. See http://youtu.be/fGFM_UrSp70?t=10m35s and the following benchmark: ```ruby require 'benchmark/ips' def fast yield end def slow(&block) block.call end Benchmark.ips do |x| x.report('fast') { fast{} } x.report('slow') { slow{} } end # => fast 154095 i/100ms # => slow 71454 i/100ms # => # => fast 7511067.8 (±5.0%) i/s - 37445085 in 4.999660s # => slow 1227576.9 (±6.8%) i/s - 6145044 in 5.028356s ```
* Merge pull request #17292 from tricknotes/generator-test-docRafael Mendonça França2014-10-161-1/+1
|\ | | | | Fix example code for `Rails::Generators::Testing::Behaviour` [ci skip]
| * Fix example code for `Rails::Generators::Testing::Behaviour` [ci skip]Ryunosuke SATO2014-10-171-1/+1
| | | | | | | | | | `cleanup_destination_root` method is not found anywhere. Instead, `prepare_destination` clean up distination root on setup.
* | Use released rails-dom-testingRafael Mendonça França2014-10-161-2/+0
|/
* clarify debugger platform invocationRaman Sinha2014-10-151-1/+2
|
* Merge pull request #17240 from masarakki/fix-test_helper-of-mountable-pluginRafael Mendonça França2014-10-131-0/+3
|\ | | | | fix test_helper for mountable plugin
| * fix test_helper for mountable pluginmasarakki2014-10-131-0/+3
| |
* | Replace Enumerable#reverse.each with Enumerable#reverse_eachErik Michaels-Ober2014-10-131-1/+1
| |
* | Default generated Gemfile to coffee-rails ~> 4.1.0Joshua Peek2014-10-121-2/+2
|/
* Generate the application pointing to rails-dom-testing masterRafael Mendonça França2014-09-301-0/+2
| | | | It is temporary until we do the final release
* correct filename for jobs testsAbdelkader Boudih2014-09-281-1/+1
|
* rails-html-sanitizer is now the defaultRafael Mendonça França2014-09-251-3/+0
| | | | Also add to upgrading guide a notice about the deprecated sanitizers
* Use released rails-html-sanitizer and rails-deprecated_sanitizerGodfrey Chan2014-09-261-1/+1
|
* Use release web-consoleRafael Mendonça França2014-09-251-1/+1
|
* Remove --skip-action-view option from application generatorDan Olson2014-09-243-6/+3
|
* Fix loading fixtures in engine testsGrzesiek Kolodziejczyk2014-09-231-1/+1
| | | | | | | fixture_path is a class attribute of ActiveSupport::TestCase, so ActiveSupport::TestCase.method_defined?(:fixture_path=) would always return false. This should fix #4971
* Specify dummy app's db migrate path in plugin's test_helper.rbYukio Mizuta2014-09-161-0/+3
|
* Improve environment config templates consistency:Thibault Jouan2014-09-161-3/+4
| | | | | * Fix long lines; * Use simple quotes for string literals when interpolation is not used.
* Use dynamic path for dummy app location in plugin's test_helper.rbYukio Mizuta2014-09-141-1/+1
|
* Change ActiveJob test directory to "test/jobs"yuuji.yaginuma2014-09-131-1/+1
|
* Merge pull request #16839 from chancancode/default_test_orderRafael Mendonça França2014-09-101-0/+3
|\ | | | | | | Default to sorting user's test cases for now
| * Default to sorting user's test cases for nowGodfrey Chan2014-09-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | Goals: 1. Default to :random for newly generated applications 2. Default to :sorted for existing applications with a warning 3. Only show the warning once 4. Only show the warning if the app actually uses AS::TestCase Fixes #16769
* | Remove extra newline from ActiveJob test templateyuuji.yaginuma2014-09-091-1/+0
|/
* Dependencies: bump to jquery-rails 4.0.0.beta2Godfrey Chan2014-09-051-1/+1
|
* Use the released jquery-rails gemGodfrey Chan2014-09-051-2/+8
|
* Change "For not..." to "Do not...".Kale Worsley2014-09-041-1/+1
|
* [ActiveJob] TestCaseAbdelkader Boudih2014-09-021-1/+0
|
* [ActiveJob] TestCaseAbdelkader Boudih2014-09-021-1/+3
|
* Try with web-console masterRafael Mendonça França2014-09-011-1/+1
|
* Use jquery-rails masterRafael Mendonça França2014-09-011-1/+1
|
* Keep it closer to the original wording [ci skip]Godfrey Chan2014-08-311-1/+1
|
* Since /console is an optional feature, mention <%= console %> instead.Rhett Sutphin2014-08-311-1/+1
| | | | (/console is not mounted by default with web-console 2.0.)
* fix broken `gem` method with non-String arguments. Closes #16709.Yves Senn2014-08-271-4/+6
| | | | This was caused by #15327.
* [ActiveJob] Add hook for test_framework and test templatesAbdelkader Boudih2014-08-222-0/+22
|
* Don't fight against ourselves for the default log levelMatthew Draper2014-08-221-2/+2
| | | | | | | If we want to always default to :debug, let's just do that. At which point the production.rb entry can become an "uncomment to change" instead.
* Remove timestamp type from generator usageRafael Mendonça França2014-08-201-1/+0
| | | | It was soft removed at 03035d69e14032a589e9653e3145237b8a9a09be
* Require ActiveJob in case a skip_xxx option is givenslainer682014-08-201-0/+1
| | | | Change position of require active_job
* remove end-of-line spacing in development.rb, production.rbNick Sinenko2014-08-202-2/+2
|
* Fix blank link on config/application.rb app template [ci skip]Carlos Antonio da Silva2014-08-191-1/+1
|
* Point to right sass-rails versionRafael Mendonça França2014-08-191-1/+1
|
* Use web-console 2.0.0.beta2 on new appsGuillermo Iguaran2014-08-191-1/+1
|
* Use released rails-html-sanitizerRafael Mendonça França2014-08-191-1/+1
|
* Merge pull request #16563 from arthurnn/add_ar_raise_trans_optionRafael Mendonça França2014-08-191-0/+5
|\ | | | | Add default .raise_in_transactional_callbacks option to template
| * Add default .raise_in_transactional_callbacks option to templateArthur Neves2014-08-191-0/+5
| |
* | loofah require dependecy is not needed anymoreRafael Mendonça França2014-08-191-2/+0
|/
* Rack is released tooRafael Mendonça França2014-08-181-4/+2
|
* No need to point to arel and i18n master anymoreRafael Mendonça França2014-08-181-6/+2
|
* Fix rails-html_sanitizer in Gemfile templateJon Atack2014-08-181-1/+1
| | | [skip ci]