diff --git a/lib/active_snapshot/models/snapshot_item.rb b/lib/active_snapshot/models/snapshot_item.rb index 7ffa1c7..435d1b2 100644 --- a/lib/active_snapshot/models/snapshot_item.rb +++ b/lib/active_snapshot/models/snapshot_item.rb @@ -14,8 +14,7 @@ class SnapshotItem < ActiveRecord::Base validates :item_type, presence: true validates :object, presence: true - def object(raw: false) - return super() if raw + def object return @object if @object if ActiveSnapshot.config.storage_method_json?