You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Rails.application.load_tasks
> show-source each_tenant
From: /home/felipe/src/satelabs/buk/gems/ruby/2.5.0/bundler/gems/apartment-9665917fde57/lib/tasks/apartment.rake @ line 122:
Owner: Object
Visibility: private
Number of lines: 5
def each_tenant(&block)
Parallel.each(tenants, in_threads: Apartment.parallel_migration_threads) do |tenant|
block.call(tenant)
end
end
Expected behavior
The global main namespace should not be polluted.
Actual behavior
The global main namespace is polluted.
System configuration
Apartment version: git
Solution
I think those methods should be extracted to a module, so that they don't pollute the global namespace.
The text was updated successfully, but these errors were encountered:
Prepare Release - 2.7.0
# Enhancements
- [Resolves#70] Rake tasks define methods on main - #75
- Add database and schema to active record log. Configurable, defaults to false to keep current behavior - #55
# Bugfixes
- [Fixes#61] Fix database create in mysql - #76
# Chores
- Remove depracated tld_length config option: tld_length was removed in influitive#309, this configuration option doesn't have any effect now. - #72
- Using [diffend.io proxy](https://diffend.io) to safely check required gems
- Added [story branch](https://github.com/story-branch/story_branch) to the configuration
- Using travis-ci to run rubocop as well, replacing github actions: github actions do not work in fork's PRs
Steps to reproduce
Open rails console (with pry):
Expected behavior
The global main namespace should not be polluted.
Actual behavior
The global main namespace is polluted.
System configuration
Solution
I think those methods should be extracted to a module, so that they don't pollute the global namespace.
The text was updated successfully, but these errors were encountered: