1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

[bug] updating a setting does not chain new values

This commit is contained in:
Sylvain 2019-04-23 13:04:50 +02:00
parent c0c9b2a980
commit 531e298b14
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
- Fix a bug: (spanish) some translations are not loaded correctly
- Fix a bug: some users may not appear in the admin's general listing
- Fix a bug: updating a setting does not chain new values
- Improved translations syntax according to YML specifications
- [TODO DEPLOY] `rake fablab:fix:users_group_ids`

View File

@ -7,6 +7,8 @@ class HistoryValue < ActiveRecord::Base
belongs_to :setting
belongs_to :user
after_create :chain_record
def chain_record
self.footprint = compute_footprint
save!