Public Instance methods
atomic_persist(*)
[show source]
# File lib/shrine/plugins/_persistence.rb 67 def atomic_persist(*) 68 raise NotImplementedError, "unhandled by a persistence plugin" 69 end
atomic_promote(*)
[show source]
# File lib/shrine/plugins/_persistence.rb 63 def atomic_promote(*) 64 raise NotImplementedError, "unhandled by a persistence plugin" 65 end
persist(*)
[show source]
# File lib/shrine/plugins/_persistence.rb 71 def persist(*) 72 raise NotImplementedError, "unhandled by a persistence plugin" 73 end
set_entity(*)
Disable attachment data serialization for data attributes that accept and return hashes.
[show source]
# File lib/shrine/plugins/_persistence.rb 77 def set_entity(*) 78 super 79 @column_serializer = nil if hash_attribute? 80 end