mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
Adding setter module method for the 'serializer' config option to PaperTrail module.
This commit is contained in:
parent
37dd6d9b96
commit
8896d26c08
2 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
## 2.7.1 (Unreleased)
|
||||
|
||||
- Added `setter` method for the `serializer` config option.
|
||||
|
||||
## 2.7.0
|
||||
|
||||
- [#183](https://github.com/airblade/paper_trail/pull/183) - Fully qualify the `Version` class to help prevent
|
||||
|
|
|
@ -69,6 +69,11 @@ module PaperTrail
|
|||
paper_trail_store[:controller_info] = value
|
||||
end
|
||||
|
||||
# Getter and Setter for PaperTrail Serializer
|
||||
def self.serializer=(value)
|
||||
PaperTrail.config.serializer = value
|
||||
end
|
||||
|
||||
def self.serializer
|
||||
PaperTrail.config.serializer
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue