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
When I implemented the deprecation for rails#38536 I left in the setter in
the initalizer. This meant that objects returned had both `@name` and
`@spec_name` set and objects looked like this:
```
<ActiveRecord::DatabaseConfigurations::HashConfig:0x00007fe0f7100c68
@env_name="development",
@name="primary",
@spec_name="primary",
@config={
:adapter=>"mysql2",
:database=>"recipes_app_development"
}
>
```
Since we don't use the kwarg to create the hash config and we have the
reader for reading off the object or selecting from the configurations
objects list we can remove this so the object looks like:
```
<ActiveRecord::DatabaseConfigurations::HashConfig:0x00007fe0f7100c68
@env_name="development",
@name="primary",
@config={
:adapter=>"mysql2",
:database=>"recipes_app_development"
}
>
```
0 commit comments