module Shrine::Plugins::Column::AttacherClassMethods
Public Instance Methods
from_column(data, **options)
click to toggle source
Initializes the attacher from a data hash/string expected to come from a database record column.
Attacher.from_column('{"id":"...","storage":"...","metadata":{...}}')
# File lib/shrine/plugins/column.rb, line 19 def from_column(data, **options) attacher = new(**options) attacher.load_column(data) attacher end