Actions
Bug #12455
closedDeprecation warning when writing total_hosts attribute
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Rails
Target version:
-
Description
DEPRECATION WARNING: You're trying to create an attribute `total_hosts'. Writing arbitrary attributes on a model is deprecated. Please just use `attr_writer` etc. (called from update_domain_counters_on_create at /home/dcleal/code/foreman/foreman/app/models/nic/base.rb:225)
Seen when running host_test.
Updated by Dominic Cleal almost 9 years ago
- Related to Bug #11444: Domains page shows negative number of hosts added
Updated by Tomer Brisker almost 9 years ago
- Status changed from New to Need more information
I could not reproduce. Are you sure that you ran `rake db:migrate` and `rake db:test:prepare` before running the test?
Updated by Dominic Cleal almost 9 years ago
- Status changed from Need more information to Rejected
- Translation missing: en.field_release deleted (
71)
Yep, test DB must have been outdated. Thanks!
Actions