Skip to content

Commit

Permalink
Remove deprecated Rails::Generators::Testing::Behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed May 1, 2024
1 parent 5085daf commit 96d918b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions guides/source/7_2_release_notes.md
Expand Up @@ -28,6 +28,8 @@ Please refer to the [Changelog][railties] for detailed changes.

### Removals

* Remove deprecated `Rails::Generators::Testing::Behaviour`.

* Remove deprecated `Rails.application.secrets`.

* Remove deprecated `Rails.config.enable_dependency_loading`.
Expand Down
4 changes: 4 additions & 0 deletions railties/CHANGELOG.md
@@ -1,3 +1,7 @@
* Remove deprecated `Rails::Generators::Testing::Behaviour`.

*Rafael Mendonça França*

* Remove deprecated `find_cmd_and_exec` console helper.

*Rafael Mendonça França*
Expand Down
3 changes: 0 additions & 3 deletions railties/lib/rails/generators/testing/behavior.rb
Expand Up @@ -111,9 +111,6 @@ def migration_file_name(relative)
Dir.glob("#{dirname}/[0-9]*_*.rb").grep(/\d+_#{file_name}.rb$/).first
end
end

include ActiveSupport::Deprecation::DeprecatedConstantAccessor
deprecate_constant "Behaviour", "Rails::Generators::Testing::Behavior", deprecator: Rails.deprecator
end
end
end

0 comments on commit 96d918b

Please sign in to comment.