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:
parent
6f2483a51f
commit
5d32756928
@ -1,8 +1,10 @@
|
||||
# Changelog Fab Manager
|
||||
|
||||
- Fix a bug: when generating an Avoir at a previous date, the resulting checksum may be invalid
|
||||
- Fix a bug: updating a setting does not chain new values
|
||||
- [TODO DEPLOY] `rake fablab:setup:chain_invoices_items_records`
|
||||
- [TODO DEPLOY] `rake fablab:setup:chain_invoices_records`
|
||||
- [TODO DEPLOY] `rake fablab:setup:chain_history_values_records`
|
||||
|
||||
## v3.1.1 2019 April 8
|
||||
|
||||
|
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user