Adding setter module method for the 'serializer' config option to PaperTrail module.
This commit is contained in:
parent
66c7ec1823
commit
0194eca5e7
|
@ -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 New Issue