module Shrine::Plugins::ParsedJson::AttacherMethods

  1. lib/shrine/plugins/parsed_json.rb

Methods

Public Instance

  1. assign

Public Instance methods

assign (value)
[show source]
# File lib/shrine/plugins/parsed_json.rb, line 10
def assign(value)
  if value.is_a?(Hash) && parsed_json?(value)
    assign(value.to_json)
  else
    super
  end
end