The change is pretty minimal, the query used in #table_exists? just needed to be expanded to include materialized views in the kinds of relations it searches.
In order to share the existing view tests, I made the previous test class…
Use gender- neutral pronouns in security guide.
related #49ff20d9b164693ed7fee880b69cc14b141678b3
WIP
the source issue is #8661.
I created a test case to illustrate the issue.
1) Failure:
test_head_created_with_image_png_content_type(RenderTest) [test/controller/render_test.rb:1238]:
Expected: "image/png"
...
We have a class called RoutesInspector. It's purpose is to aggregate the routes so that they can be displayed in the console (rake routes). Recently a routes listing was added to the exception page. This listing used parts of `Routes…
Using Ruby 2.0 we get a failing test in actionpack:
1) Failure:
test_locals_option_to_assert_template_is_not_supported(RenderTest) [/Users/senny/Projects/rails/actionpack/test/controller/render_test.rb:1441]:
--- expec...
When a table or a column is renamed related indexes kept their name. This will lead to confusing names. This patch renames related indexes when a column or a table is renamed. Only indexes with names generated by rails will be renamed. I…
This PR is work in progress and should not be merged.
While fixing a bug related to rename_column (#8613) I noticed the FIXME comments and I wanted to work them off before I finish my bugfix.
While working on the FIXME I noticed th…
source issue: #8185
As reported (https://github.com/rails/rails/pull/8185#issuecomment-11702226)
this test relied on the order a hash was serialized. Comparing the parsed
hash makes the test no longer order dependent.
This is a fix for #8612
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_ge...
When fixture files are generated the column names can cause conflicts with reserved YAML keywords such as "yes" and "no". This patch quotes all columns in generated fixture files.
I also rewrote the fixture tests to match against the…
With 572c3d51 ActiveSupport::BufferedLogger was deprecated in favor of ActiveSupport::Logger. There were still a few mentions of BufferedLogger present in the guides.
I updated the guides to reflect the deprecation.
This commit belongs to a previously merged PR #8607
ActiveSupport::BufferedLogger is not only subclassed but also instantiated. This patch adds the deprecation warning when a new BufferedLogger is instantiated.
I think this sho…
Since ActiveSupport::BufferedLogger was deprecated, it's not possible to subclass it anymore. Creating a subclass fails with the following exception:
test_can_be_subclassed(BufferedLoggerTest):
TypeError: superclass must be a ...
On this Festivus day—the fourth anniversary of the announcement of the merger of Merb into Rails—I'd like to reintroduce one of my favorite features from Merb tha…
Hi everyone,
I tried to create a new Rails project with edge rails and it responded with a not very helpful Error Message. The reason for that was, that thread_safe was required but was not available.
So i added a more helpful mess…
This is an extremely simple and low impact change in the regex used to find explicit template dependencies. This allows Digestor to be used with HAML. Please see https://github.com/rails/cache_digests/pull/21 for details.
Updated security guide to reference secret_key_base instead of secret_token, with a little information about the change from CookieStore to EncryptedCookieStore.
Updated security guide with information about secret_token.rb and to suggest securing sensitive files.
ActiveModel::Model already includes ActiveModel::Validations and ActiveModel::Callbacks, but not ActiveModel::Validations::Callbacks. I think it would be handy to also include this module so methods like before_validation can b…
Ruby gives us the ability to retry a piece of code, but the mechanisms to control or limit the number of times it is retried must be manually coded each time by a developer. This PR gives the ability to retry arbitrary code a maximum num…
This is a backport of #8522 to fix #3489
Conflicts:
activerecord/CHANGELOG.md
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
activerecord/test/cases/migration/rename_column_test.rb
The files looked qu…
Pull request to replace https://github.com/rails/rails/pull/8498
Fixes https://github.com/rails/rails/issues/5523
(Sorry for the duplicate. Had a rebasing migraine.)