railties 4.0.13 → 4.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +155 -385
  3. data/README.rdoc +1 -1
  4. data/bin/rails +1 -1
  5. data/lib/rails.rb +11 -13
  6. data/lib/rails/all.rb +1 -0
  7. data/lib/rails/api/task.rb +9 -12
  8. data/lib/rails/app_rails_loader.rb +2 -2
  9. data/lib/rails/application.rb +154 -149
  10. data/lib/rails/application/configuration.rb +1 -14
  11. data/lib/rails/application/default_middleware_stack.rb +99 -0
  12. data/lib/rails/application/finisher.rb +2 -0
  13. data/lib/rails/application_controller.rb +16 -0
  14. data/lib/rails/cli.rb +1 -2
  15. data/lib/rails/commands.rb +2 -94
  16. data/lib/rails/commands/application.rb +2 -28
  17. data/lib/rails/commands/commands_tasks.rb +174 -0
  18. data/lib/rails/commands/console.rb +2 -2
  19. data/lib/rails/commands/dbconsole.rb +1 -1
  20. data/lib/rails/commands/plugin.rb +23 -0
  21. data/lib/rails/commands/runner.rb +1 -1
  22. data/lib/rails/commands/server.rb +46 -30
  23. data/lib/rails/configuration.rb +4 -1
  24. data/lib/rails/console/helpers.rb +6 -0
  25. data/lib/rails/engine.rb +29 -18
  26. data/lib/rails/engine/commands.rb +1 -1
  27. data/lib/rails/engine/railties.rb +0 -8
  28. data/lib/rails/generators.rb +4 -3
  29. data/lib/rails/generators/actions.rb +1 -1
  30. data/lib/rails/generators/active_model.rb +0 -8
  31. data/lib/rails/generators/app_base.rb +213 -74
  32. data/lib/rails/generators/base.rb +17 -16
  33. data/lib/rails/generators/erb/scaffold/templates/_form.html.erb +1 -1
  34. data/lib/rails/generators/erb/scaffold/templates/index.html.erb +1 -3
  35. data/lib/rails/generators/migration.rb +18 -26
  36. data/lib/rails/generators/named_base.rb +4 -7
  37. data/lib/rails/generators/rails/app/app_generator.rb +91 -5
  38. data/lib/rails/generators/rails/app/templates/Gemfile +20 -15
  39. data/lib/rails/generators/rails/app/templates/Rakefile +1 -1
  40. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +2 -0
  41. data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +5 -3
  42. data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +5 -1
  43. data/lib/rails/generators/rails/app/templates/config/application.rb +2 -0
  44. data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +7 -10
  45. data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +11 -31
  46. data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +25 -29
  47. data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +8 -10
  48. data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +8 -11
  49. data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +6 -3
  50. data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +8 -22
  51. data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +7 -9
  52. data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +9 -12
  53. data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +8 -8
  54. data/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml +7 -17
  55. data/lib/rails/generators/rails/app/templates/config/environment.rb +1 -1
  56. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +2 -5
  57. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +1 -1
  58. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +1 -4
  59. data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +1 -1
  60. data/lib/rails/generators/rails/app/templates/config/routes.rb +1 -1
  61. data/lib/rails/generators/rails/app/templates/config/{initializers/secret_token.rb.tt → secrets.yml} +10 -2
  62. data/lib/rails/generators/rails/app/templates/public/404.html +20 -11
  63. data/lib/rails/generators/rails/app/templates/public/422.html +20 -11
  64. data/lib/rails/generators/rails/app/templates/public/500.html +19 -10
  65. data/lib/rails/generators/rails/controller/USAGE +1 -0
  66. data/lib/rails/generators/rails/controller/controller_generator.rb +35 -1
  67. data/lib/rails/generators/rails/generator/USAGE +1 -0
  68. data/lib/rails/generators/rails/generator/generator_generator.rb +2 -0
  69. data/lib/rails/generators/rails/model/USAGE +5 -5
  70. data/lib/rails/generators/rails/{plugin_new → plugin}/USAGE +0 -0
  71. data/lib/rails/generators/rails/{plugin_new/plugin_new_generator.rb → plugin/plugin_generator.rb} +10 -4
  72. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/%name%.gemspec +1 -0
  73. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/Gemfile +16 -1
  74. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/MIT-LICENSE +0 -0
  75. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/README.rdoc +0 -0
  76. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/Rakefile +0 -0
  77. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/controllers/%name%/application_controller.rb.tt +0 -0
  78. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/helpers/%name%/application_helper.rb.tt +0 -0
  79. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/mailers/.empty_directory +0 -0
  80. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/models/.empty_directory +0 -0
  81. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/app/views/layouts/%name%/application.html.erb.tt +0 -0
  82. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/bin/rails.tt +0 -4
  83. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/config/routes.rb +0 -0
  84. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/gitignore +0 -0
  85. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/lib/%name%.rb +0 -0
  86. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/lib/%name%/engine.rb +0 -0
  87. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/lib/%name%/version.rb +0 -0
  88. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/lib/tasks/%name%_tasks.rake +0 -0
  89. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/application.rb +1 -0
  90. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/boot.rb +0 -0
  91. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/javascripts.js +0 -0
  92. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/routes.rb +0 -0
  93. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/rails/stylesheets.css +5 -3
  94. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/test/%name%_test.rb +0 -0
  95. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/test/integration/navigation_test.rb +0 -0
  96. data/lib/rails/generators/rails/{plugin_new → plugin}/templates/test/test_helper.rb +0 -0
  97. data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +1 -1
  98. data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +2 -2
  99. data/lib/rails/generators/resource_helpers.rb +20 -5
  100. data/lib/rails/generators/test_unit/generator/generator_generator.rb +26 -0
  101. data/lib/rails/generators/test_unit/generator/templates/generator_test.rb +16 -0
  102. data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +8 -1
  103. data/lib/rails/generators/test_unit/mailer/templates/preview.rb +11 -0
  104. data/lib/rails/generators/testing/assertions.rb +1 -1
  105. data/lib/rails/generators/testing/behaviour.rb +3 -13
  106. data/lib/rails/info.rb +5 -3
  107. data/lib/rails/info_controller.rb +5 -15
  108. data/lib/rails/mailers_controller.rb +73 -0
  109. data/lib/rails/paths.rb +13 -18
  110. data/lib/rails/rack/debugger.rb +2 -2
  111. data/lib/rails/rack/logger.rb +1 -1
  112. data/lib/rails/railtie.rb +38 -2
  113. data/lib/rails/source_annotation_extractor.rb +2 -2
  114. data/lib/rails/tasks.rb +0 -2
  115. data/lib/rails/tasks/documentation.rake +0 -5
  116. data/lib/rails/tasks/engine.rake +1 -1
  117. data/lib/rails/tasks/framework.rake +2 -12
  118. data/lib/rails/templates/layouts/application.html.erb +2 -2
  119. data/lib/rails/templates/rails/mailers/email.html.erb +98 -0
  120. data/lib/rails/templates/rails/mailers/index.html.erb +8 -0
  121. data/lib/rails/templates/rails/mailers/mailer.html.erb +6 -0
  122. data/lib/rails/test_help.rb +4 -1
  123. data/lib/rails/test_unit/sub_test_task.rb +44 -3
  124. data/lib/rails/test_unit/testing.rake +9 -111
  125. data/lib/rails/version.rb +3 -3
  126. data/lib/rails/welcome_controller.rb +4 -3
  127. metadata +99 -76
  128. data/lib/rails/commands/plugin_new.rb +0 -9
  129. data/lib/rails/generators/actions/create_migration.rb +0 -68
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b39b0f1e093b2cbca0da23fc3479cb3d646081a7
4
- data.tar.gz: 97c025d1404df777767730102124811abb7da92c
3
+ metadata.gz: b7ae66566e8dfcb12d23fe457979c4ffc84d0f65
4
+ data.tar.gz: 7938e581c1191fab947ac431d27f955b67c653ae
5
5
  SHA512:
6
- metadata.gz: 9a6db8f55306b803be1d980a8a960882be82b2e51c1d72544fe404163cadf456aa426d6ed39c91da4d5648de0b6c6fd2154dd3a2b37ab13ddd9b1f43a182a73c
7
- data.tar.gz: 3cab1ed3f24aad860f53e41f65dafa8687e7d471e7e0417a61a5b43eb5f906b28db15268789188aab4abd26961eba37942fbed441cd84fc99819bf58327eed20
6
+ metadata.gz: e557d3cccbd2631ccebcecbbfbe14e3ea87a52e49bc89384bfd9d5234f15d491d4ca34e9bc0c6b9b0f4f1493b302dae1a09ae5b7c951192a17acefe191a6ae31
7
+ data.tar.gz: b1ce9013c3333a53eb4fbcab3337dbc23cad8b5ead865ad068c3b76c595082ead2e66b27e6aae3f86cb611ebe5e2ae40e621c082d5b6487187ee9898dc61c040
@@ -1,488 +1,258 @@
1
- ## Rails 4.0.13 (January 6, 2015) ##
1
+ * Move `secret_key_base` from `config/initializers/secret_token.rb`
2
+ to `config/secrets.yml`.
2
3
 
3
- *No changes*
4
+ `secret_key_base` is now saved in `Rails.application.secrets.secret_key_base`
5
+ and it fallbacks to the value of `config.secret_key_base` when it is not
6
+ present in `config/secrets.yml`.
4
7
 
8
+ `config/initializers/secret_token.rb` is not generated by default
9
+ in new applications.
5
10
 
6
- ## Rails 4.0.12 (November 16, 2014) ##
7
-
8
- *No changes*
9
-
10
-
11
- ## Rails 4.0.11.1 (November 19, 2014) ##
12
-
13
- *No changes*
14
-
15
-
16
- ## Rails 4.0.11 (September 11, 2014) ##
17
-
18
- *No changes*
19
-
20
-
21
- ## Rails 4.0.10 (September 11, 2014) ##
22
-
23
- * Scaffold generator `_form` partial adds `class="field"` for password
24
- confirmation fields.
25
-
26
- *noinkling*
27
-
28
-
29
- ## Rails 4.0.9 (August 18, 2014) ##
30
-
31
- *No changes*
32
-
33
-
34
- ## Rails 4.0.8 (July 2, 2014) ##
35
-
36
- *No changes*
37
-
38
-
39
- ## Rails 4.0.7 (July 2, 2014) ##
40
-
41
- *No changes*
42
-
43
-
44
- ## Rails 4.0.6 (June 26, 2014) ##
45
-
46
- *No changes*
47
-
48
-
49
- ## Rails 4.0.5 (May 6, 2014) ##
50
-
51
- *No changes*
11
+ *Guillermo Iguaran*
52
12
 
13
+ * Generate a new `secrets.yml` file in the `config` folder for new
14
+ applications. By default, this file contains the application's `secret_key_base`,
15
+ but it could also be used to store other secrets such as access keys for external
16
+ APIs.
53
17
 
54
- ## Rails 4.0.4 (March 14, 2014) ##
18
+ The secrets added to this file will be accessible via `Rails.application.secrets`.
19
+ For example, with the following `secrets.yml`:
55
20
 
56
- * Added Thor-action for creation of migrations.
21
+ development:
22
+ secret_key_base: 3b7cd727ee24e8444053437c36cc66c3
23
+ some_api_key: SOMEKEY
57
24
 
58
- Fixes #13588 and #12674.
25
+ `Rails.application.secrets.some_api_key` will return `SOMEKEY` in the development
26
+ environment.
59
27
 
60
- *Gert Goet*
28
+ *Guillermo Iguaran*
61
29
 
62
30
  * Add `ENV['DATABASE_URL']` support in `rails dbconsole`. Fixes #13320.
63
31
 
64
32
  *Huiming Teo*
65
33
 
66
- * Fix default `config/application.rb` template to honor the RAILS_GROUPS env variable.
67
-
68
- *Guillermo Iguaran*
69
-
70
- * Fix default `config/application.rb` template to remove unused `config.assets.enabled` variable.
71
-
72
- *Guillermo Iguaran*
34
+ * Add `Application#message_verifier` method to return a message verifier.
73
35
 
36
+ This verifier can be used to generate and verify signed messages in the application.
74
37
 
75
- ## Rails 4.0.3 (February 18, 2014) ##
38
+ message = Rails.application.message_verifier('salt').generate('my sensible data')
39
+ Rails.application.message_verifier('salt').verify(message)
40
+ # => 'my sensible data'
76
41
 
77
- *No changes*
42
+ It is recommended not to use the same verifier for different things, so you can get different
43
+ verifiers passing the name argument.
78
44
 
45
+ message = Rails.application.message_verifier('cookies').generate('my sensible cookie data')
79
46
 
80
- ## Rails 4.0.2 (December 02, 2013) ##
81
-
82
- *No changes*
83
-
84
-
85
- ## Rails 4.0.1 (November 01, 2013) ##
86
-
87
- * Fix the event name of action_dispatch requests.
47
+ See the `ActiveSupport::MessageVerifier` documentation for more information.
88
48
 
89
49
  *Rafael Mendonça França*
90
50
 
91
- * Make `config.log_level` work with custom loggers.
92
-
93
- *Max Shytikov*
94
-
95
- * Fix `rake environment` to do not eager load modules
96
-
97
- *Paul Nikitochkin*
98
-
99
- * Fix `rails plugin --help` command.
100
-
101
- *Richard Schneeman*
102
-
103
- * Omit turbolinks configuration completely on skip_javascript generator option.
104
-
105
- *Nikita Fedyashev*
106
-
51
+ * The [Spring application
52
+ preloader](https://github.com/jonleighton/spring) is now installed
53
+ by default for new applications. It uses the development group of
54
+ the Gemfile, so will not be installed in production.
107
55
 
108
- ## Rails 4.0.0 (June 25, 2013) ##
56
+ *Jon Leighton*
109
57
 
110
- * Clearing autoloaded constants triggers routes reloading [Fixes #10685].
58
+ * Uses .railsrc while creating new plugin if it is available.
59
+ Fixes #10700.
111
60
 
112
- *Xavier Noria*
113
-
114
- * Fixes bug with scaffold generator with `--assets=false --resource-route=false`.
115
- Fixes #9525.
116
-
117
- *Arun Agrawal*
118
-
119
- * Move rails.png into a data-uri. One less file to get generated into a new
120
- application. This is also consistent with the removal of index.html.
121
-
122
- *Steve Klabnik*
123
-
124
- * The application rake task `doc:rails` generates now an API like the
125
- official one (except for the links to GitHub).
126
-
127
- *Xavier Noria*
61
+ *Prathamesh Sonpatki*
128
62
 
129
- * Allow vanilla apps to render CoffeeScript templates in production
63
+ * Remove turbolinks when generating a new application based on a template that skips it.
130
64
 
131
- Vanilla apps already render CoffeeScript templates in development and test
132
- environments. With this change, the production behavior matches that of
133
- the other environments.
134
-
135
- Effectively, this meant moving coffee-rails (and the JavaScript runtime on
136
- which it is dependent) from the :assets group to the top-level of the
137
- generated Gemfile.
138
-
139
- *Gabe Kopley*
140
-
141
- * Don't generate a scaffold.css when --no-assets is specified
142
-
143
- *Kevin Glowacz*
144
-
145
- * Add support for generate scaffold password:digest
146
-
147
- * adds password_digest attribute to the migration
148
- * adds has_secure_password to the model
149
- * adds password and password_confirmation password_fields to _form.html
150
- * omits password from index.html and show.html
151
- * adds password and password_confirmation to the controller
152
- * adds unencrypted password and password_confirmation to the controller test
153
- * adds encrypted password_digest to the fixture
154
-
155
- *Sam Ruby*
156
-
157
- * Improved `rake test` command for running tests
158
-
159
- To run all tests:
160
-
161
- $ rake test
162
-
163
- To run a test suite
164
-
165
- $ rake test:[models,helpers,units,controllers,mailers,...]
166
-
167
- To run a selected test file(s):
168
-
169
- $ rake test test/unit/foo_test.rb [test/unit/bar_test.rb ...]
170
-
171
- To run a single test from a test file
172
-
173
- $ rake test test/unit/foo_test.rb TESTOPTS='-n test_the_truth'
65
+ Example:
174
66
 
175
- * Improve service pages with new layout (404, etc).
67
+ Skips turbolinks adding `add_gem_entry_filter { |gem| gem.name != "turbolinks" }`
68
+ to the template.
176
69
 
177
- *Stanislav Sobolev*
70
+ *Lauro Caetano*
178
71
 
179
- * Improve `rake stats` for JavaScript and CoffeeScript: ignore block comments
180
- and calculates number of functions.
72
+ * Instrument an `load_config_initializer.railties` event on each load of configuration initializer
73
+ from `config/initializers`. Subscribers should be attached before `load_config_initializers`
74
+ initializer completed.
181
75
 
182
- *Hendy Tanata*
76
+ Registering subscriber examples:
183
77
 
184
- * Ability to use a custom builder by passing `--builder` (or `-b`) has been removed.
185
- Consider using application template instead. See this guide for more detail:
186
- http://guides.rubyonrails.org/rails_application_templates.html
78
+ # config/application.rb
79
+ module RailsApp
80
+ class Application < Rails::Application
81
+ ActiveSupport::Notifications.subscribe('load_config_initializer.railties') do |*args|
82
+ event = ActiveSupport::Notifications::Event.new(*args)
83
+ puts "Loaded initializer #{event.payload[:initializer]} (#{event.duration}ms)"
84
+ end
85
+ end
86
+ end
187
87
 
188
- *Prem Sichanugrist*
88
+ # my_engine/lib/my_engine/engine.rb
89
+ module MyEngine
90
+ class Engine < ::Rails::Engine
91
+ config.before_initialize do
92
+ ActiveSupport::Notifications.subscribe('load_config_initializer.railties') do |*args|
93
+ event = ActiveSupport::Notifications::Event.new(*args)
94
+ puts "Loaded initializer #{event.payload[:initializer]} (#{event.duration}ms)"
95
+ end
96
+ end
97
+ end
98
+ end
189
99
 
190
- * Fix `rake db:*` tasks to work with `DATABASE_URL` and without `config/database.yml`.
100
+ *Paul Nikitochkin*
191
101
 
192
- *Terence Lee*
102
+ * Support for Pathnames in eager load paths.
193
103
 
194
- * Add notice message for destroy action in scaffold generator.
104
+ *Mike Pack*
195
105
 
196
- *Rahul P. Chaudhari*
106
+ * Fixed missing line and shadow on service pages(404, 422, 500).
197
107
 
198
- * Add two new test rake tasks to speed up full test runs.
108
+ *Dmitry Korotkov*
199
109
 
200
- * `test:all`: run tests quickly by merging all types and not resetting db.
201
- * `test:all:db`: run tests quickly, but also reset db.
110
+ * `BACKTRACE` environment variable to show unfiltered backtraces for
111
+ test failures.
202
112
 
203
- *Ryan Davis*
113
+ Example:
204
114
 
205
- * Add `--rc` option to support the load of a custom rc file during the generation of a new app.
115
+ $ BACKTRACE=1 ruby -Itest ...
116
+ # or with rake
117
+ $ BACKTRACE=1 bin/rake
206
118
 
207
- *Amparo Luna*
119
+ *Yves Senn*
208
120
 
209
- * Add `--no-rc` option to skip the loading of railsrc file during the generation of a new app.
121
+ * Removal of all javascript stuff (gems and files) when generating a new
122
+ application using the `--skip-javascript` option.
210
123
 
211
- *Amparo Luna*
124
+ *Robin Dupret*
212
125
 
213
- * Fixes database.yml when creating a new rails application with '.'
214
- Fixes #8304.
126
+ * Make the application name snake cased when it contains spaces
215
127
 
216
- *Jeremy W. Rowe*
128
+ The application name is used to fill the `database.yml` and
129
+ `session_store.rb` files ; previously, if the provided name
130
+ contained whitespaces, it led to unexpected names in these files.
217
131
 
218
- * Restore Rails::Engine::Railties#engines with deprecation to ensure
219
- compatibility with gems such as Thinking Sphinx
220
- Fixes #8551.
132
+ *Robin Dupret*
221
133
 
222
- *Tim Raymond*
134
+ * Added `--model-name` option to `ScaffoldControllerGenerator`.
223
135
 
224
- * Specify which logs to clear when using the `rake log:clear` task.
225
- (e.g. rake log:clear LOGS=test,staging)
136
+ *yalab*
226
137
 
227
- *Matt Bridges*
138
+ * Expose MiddlewareStack#unshift to environment configuration.
228
139
 
229
- * Allow a `:dirs` key in the `SourceAnnotationExtractor.enumerate` options
230
- to explicitly set the directories to be traversed so it's easier to define
231
- custom rake tasks.
140
+ *Ben Pickles*
232
141
 
233
- *Brian D. Burns*
142
+ * `rails server` will only extend the logger to output to STDOUT
143
+ in development environment.
234
144
 
235
- * Deprecate `Rails::Generators::ActiveModel#update_attributes` in favor of `#update`.
145
+ *Richard Schneeman*
236
146
 
237
- ORMs that implement `Generators::ActiveModel#update_attributes` should change
238
- to `#update`. Scaffold controller generators should change calls like:
147
+ * Don't require passing path to app before options in `rails new`
148
+ and `rails plugin new`
239
149
 
240
- @orm_instance.update_attributes(...)
150
+ *Piotr Sarnacki*
241
151
 
242
- to:
152
+ * rake notes now searches *.less files
243
153
 
244
- @orm_instance.update(...)
154
+ *Josh Crowder*
245
155
 
246
- This goes along with the addition of `ActiveRecord::Base#update`.
156
+ * Generate nested route for namespaced controller generated using
157
+ `rails g controller`.
158
+ Fixes #11532.
247
159
 
248
- *Carlos Antonio da Silva*
160
+ Example:
249
161
 
250
- * Include `jbuilder` by default and rely on its scaffold generator to show json API.
251
- Check https://github.com/rails/jbuilder for more info and examples.
162
+ rails g controller admin/dashboard index
252
163
 
253
- *DHH*
164
+ # Before:
165
+ get "dashboard/index"
254
166
 
255
- * Scaffold now generates HTML-only controller by default.
167
+ # After:
168
+ namespace :admin do
169
+ get "dashboard/index"
170
+ end
256
171
 
257
- *DHH + Pavel Pravosud*
172
+ *Prathamesh Sonpatki*
258
173
 
259
- * The generated `README.rdoc` for new applications invites the user to
260
- document the necessary steps to get the application up and running.
174
+ * Fix the event name of action_dispatch requests.
261
175
 
262
- *Xavier Noria*
176
+ *Rafael Mendonça França*
263
177
 
264
- * Generated applications no longer get `doc/README_FOR_APP`. In consequence,
265
- the `doc` directory is created on demand by documentation tasks rather than
266
- generated by default.
178
+ * Make `config.log_level` work with custom loggers.
267
179
 
268
- *Xavier Noria*
180
+ *Max Shytikov*
269
181
 
270
- * App executables now live in the `bin/` directory: `bin/bundle`,
271
- `bin/rails`, `bin/rake`. Run `rake rails:update:bin` to add these
272
- executables to your own app. `script/rails` is gone from new apps.
182
+ * Changed stylesheet load order in the stylesheet manifest generator.
183
+ Fixes #11639.
273
184
 
274
- Running executables within your app ensures they use your app's Ruby
275
- version and its bundled gems, and it ensures your production deployment
276
- tools only need to execute a single script. No more having to carefully
277
- `cd` to the app dir and run `bundle exec ...`.
185
+ *Pawel Janiak*
278
186
 
279
- Rather than treating `bin/` as a junk drawer for generated "binstubs",
280
- bundler 1.3 adds support for generating stubs for just the executables
281
- you actually use: `bundle binstubs unicorn` generates `bin/unicorn`.
282
- Add that executable to git and version it just like any other app code.
187
+ * Added generated unit test for generator generator using new
188
+ `test:generators` rake task.
283
189
 
284
- *Jeremy Kemper*
190
+ *Josef Šimánek*
285
191
 
286
- * `config.assets.enabled` is now true by default. If you're upgrading from a Rails 3.x app
287
- that does not use the asset pipeline, you'll be required to add `config.assets.enabled = false`
288
- to your application.rb. If you don't want the asset pipeline on a new app use `--skip-sprockets`
192
+ * Removed `update:application_controller` rake task.
289
193
 
290
- *DHH*
194
+ *Josef Šimánek*
291
195
 
292
- * Environment name can be a start substring of the default environment names
293
- (production, development, test). For example: tes, pro, prod, dev, devel.
294
- Fixes #8628.
196
+ * Fix `rake environment` to do not eager load modules
295
197
 
296
- *Mykola Kyryk*
198
+ *Paul Nikitochkin*
297
199
 
298
- * Add `-B` alias for `--skip-bundle` option in the rails new generators.
200
+ * Fix `rake notes` to look into `*.sass` files
299
201
 
300
- *Jiri Pospisil*
202
+ *Yuri Artemev*
301
203
 
302
- * Quote column names in generates fixture files. This prevents
303
- conflicts with reserved YAML keywords such as 'yes' and 'no'
304
- Fixes #8612.
204
+ * Removed deprecated `Rails.application.railties.engines`.
305
205
 
306
- *Yves Senn*
206
+ *Arun Agrawal*
307
207
 
308
- * Explicit options have precedence over `~/.railsrc` on the `rails new` command.
208
+ * Removed deprecated threadsafe! from Rails Config.
309
209
 
310
- *Rafael Mendonça França*
210
+ *Paul Nikitochkin*
311
211
 
312
- * Generated migrations now always use the `change` method.
212
+ * Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in
213
+ favor of `ActiveRecord::Generators::ActiveModel#update`.
313
214
 
314
- *Marc-André Lafortune*
215
+ *Vipul A M*
315
216
 
316
- * Add `app/models/concerns` and `app/controllers/concerns` to the default directory structure and load path.
317
- See http://37signals.com/svn/posts/3372-put-chubby-models-on-a-diet-with-concerns for usage instructions.
217
+ * Remove deprecated `config.whiny_nils` option.
318
218
 
319
- *DHH*
219
+ *Vipul A M*
320
220
 
321
- * The `rails/info/routes` now correctly formats routing output as an html table.
221
+ * Rename `commands/plugin_new.rb` to `commands/plugin.rb` and fix references
322
222
 
323
223
  *Richard Schneeman*
324
224
 
325
- * The `public/index.html` is no longer generated for new projects.
326
- Page is replaced by internal `welcome_controller` inside of railties.
225
+ * Fix `rails plugin --help` command.
327
226
 
328
227
  *Richard Schneeman*
329
228
 
330
- * Add `ENV['RACK_ENV']` support to `rails runner/console/server`.
331
-
332
- *kennyj*
333
-
334
- * Add `db` to list of folders included by `rake notes` and `rake notes:custom`. *Antonio Cangiano*
335
-
336
- * Engines with a dummy app include the rake tasks of dependencies in the app namespace.
337
- Fixes #8229.
338
-
339
- *Yves Senn*
340
-
341
- * Add `sqlserver.yml` template file to satisfy `-d sqlserver` being passed to `rails new`.
342
- Fixes #6882.
343
-
344
- *Robert Nesius*
345
-
346
- * Rake test:uncommitted finds git directory in ancestors *Nicolas Despres*
347
-
348
- * Add dummy app Rake tasks when `--skip-test-unit` and `--dummy-path` is passed to the plugin generator.
349
- Fixes #8121.
350
-
351
- *Yves Senn*
352
-
353
- * Add `.rake` to list of file extensions included by `rake notes` and `rake notes:custom`. *Brent J. Nordquist*
354
-
355
- * New test locations `test/models`, `test/helpers`, `test/controllers`, and
356
- `test/mailers`. Corresponding rake tasks added as well. *Mike Moore*
357
-
358
- * Set a different cache per environment for assets pipeline
359
- through `config.assets.cache`.
360
-
361
- *Guillermo Iguaran*
362
-
363
- * `Rails.public_path` now returns a Pathname object. *Prem Sichanugrist*
364
-
365
- * Remove highly uncommon `config.assets.manifest` option for moving the manifest path.
366
- This option is now unsupported in sprockets-rails.
367
-
368
- *Guillermo Iguaran & Dmitry Vorotilin*
369
-
370
- * Add `config.action_controller.permit_all_parameters` to disable
371
- StrongParameters protection, it's false by default.
372
-
373
- *Guillermo Iguaran*
374
-
375
- * Remove `config.active_record.whitelist_attributes` and
376
- `config.active_record.mass_assignment_sanitizer` from new applications since
377
- MassAssignmentSecurity has been extracted from Rails.
378
-
379
- *Guillermo Iguaran*
380
-
381
- * Change `rails new` and `rails plugin new` generators to name the `.gitkeep` files
382
- as `.keep` in a more SCM-agnostic way.
383
-
384
- Change `--skip-git` option to only skip the `.gitignore` file and still generate
385
- the `.keep` files.
386
-
387
- Add `--skip-keeps` option to skip the `.keep` files.
388
-
389
- *Derek Prior & Francesco Rodriguez*
390
-
391
- * Fixed support for `DATABASE_URL` environment variable for rake db tasks.
392
-
393
- *Grace Liu*
394
-
395
- * `rails dbconsole` now can use SSL for MySQL. The `database.yml` options sslca, sslcert, sslcapath, sslcipher
396
- and sslkey now affect `rails dbconsole`.
397
-
398
- *Jim Kingdon and Lars Petrus*
399
-
400
- * Correctly handle SCRIPT_NAME when generating routes to engine in application
401
- that's mounted at a sub-uri. With this behavior, you *should not* use
402
- `default_url_options[:script_name]` to set proper application's mount point by
403
- yourself.
404
-
405
- *Piotr Sarnacki*
406
-
407
- * `config.threadsafe!` is deprecated in favor of `config.eager_load` which provides a more fine grained control on what is eager loaded .
408
-
409
- *José Valim*
410
-
411
- * The migration generator will now produce AddXXXToYYY/RemoveXXXFromYYY migrations with references statements, for instance
412
-
413
- rails g migration AddReferencesToProducts user:references supplier:references{polymorphic}
414
-
415
- will generate the migration with:
416
-
417
- add_reference :products, :user, index: true
418
- add_reference :products, :supplier, polymorphic: true, index: true
419
-
420
- *Aleksey Magusev*
421
-
422
- * Allow scaffold/model/migration generators to accept a `polymorphic` modifier
423
- for `references`/`belongs_to`, for instance
424
-
425
- rails g model Product supplier:references{polymorphic}
426
-
427
- will generate the model with `belongs_to :supplier, polymorphic: true`
428
- association and appropriate migration.
429
-
430
- *Aleksey Magusev*
431
-
432
- * Set `config.active_record.migration_error` to `:page_load` for development.
433
-
434
- *Richard Schneeman*
435
-
436
- * Add runner to `Rails::Railtie` as a hook called just after runner starts.
437
-
438
- *José Valim & kennyj*
439
-
440
- * Add `/rails/info/routes` path, displays same information as `rake routes` .
441
-
442
- *Richard Schneeman & Andrew White*
443
-
444
- * Improved `rake routes` output for redirects.
445
-
446
- *Łukasz Strzałkowski & Andrew White*
447
-
448
- * Load all environments available in `config.paths["config/environments"]`.
449
-
450
- *Piotr Sarnacki*
451
-
452
- * Remove `Rack::SSL` in favour of `ActionDispatch::SSL`.
453
-
454
- *Rafael Mendonça França*
229
+ * Omit turbolinks configuration completely on skip_javascript generator option.
455
230
 
456
- * Remove Active Resource from Rails framework.
231
+ *Nikita Fedyashev*
457
232
 
458
- *Prem Sichangrist*
233
+ * Removed deprecated rake tasks for running tests: `rake test:uncommitted` and
234
+ `rake test:recent`.
459
235
 
460
- * Allow to set class that will be used to run as a console, other than IRB, with `Rails.application.config.console=`. It's best to add it to `console` block.
236
+ *John Wang*
461
237
 
462
- Example:
463
-
464
- # it can be added to config/application.rb
465
- console do
466
- # this block is called only when running console,
467
- # so we can safely require pry here
468
- require "pry"
469
- config.console = Pry
470
- end
238
+ * Clearing autoloaded constants triggers routes reloading.
239
+ Fixes #10685.
471
240
 
472
- *Piotr Sarnacki*
241
+ *Xavier Noria*
473
242
 
474
- * Add convenience `hide!` method to Rails generators to hide current generator
475
- namespace from showing when running `rails generate`.
243
+ * Fixes bug with scaffold generator with `--assets=false --resource-route=false`.
244
+ Fixes #9525.
476
245
 
477
- *Carlos Antonio da Silva*
246
+ *Arun Agrawal*
478
247
 
479
- * Rails::Plugin has gone. Instead of adding plugins to vendor/plugins use gems or bundler with path or git dependencies.
248
+ * Rails::Railtie no longer forces the Rails::Configurable module on everything
249
+ that subclasses it. Instead, the methods from Rails::Configurable have been
250
+ moved to class methods in Railtie and the Railtie has been made abstract.
480
251
 
481
- *Santiago Pastorino*
252
+ *John Wang*
482
253
 
483
- * Set config.action_mailer.async = true to turn on asynchronous
484
- message delivery.
254
+ * Changes repetitive th tags to use colspan attribute in `index.html.erb` template.
485
255
 
486
- *Brian Cardarella*
256
+ *Sıtkı Bağdat*
487
257
 
488
- Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/railties/CHANGELOG.md) for previous changes.
258
+ Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/railties/CHANGELOG.md) for previous changes.