Adding setter module method for the 'serializer' config option to PaperTrail module.
This commit is contained in:
parent
37dd6d9b96
commit
8896d26c08
|
@ -1,5 +1,7 @@
|
||||||
## 2.7.1 (Unreleased)
|
## 2.7.1 (Unreleased)
|
||||||
|
|
||||||
|
- Added `setter` method for the `serializer` config option.
|
||||||
|
|
||||||
## 2.7.0
|
## 2.7.0
|
||||||
|
|
||||||
- [#183](https://github.com/airblade/paper_trail/pull/183) - Fully qualify the `Version` class to help prevent
|
- [#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
|
paper_trail_store[:controller_info] = value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Getter and Setter for PaperTrail Serializer
|
||||||
|
def self.serializer=(value)
|
||||||
|
PaperTrail.config.serializer = value
|
||||||
|
end
|
||||||
|
|
||||||
def self.serializer
|
def self.serializer
|
||||||
PaperTrail.config.serializer
|
PaperTrail.config.serializer
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue