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
10 def assign(value)
11   if value.is_a?(Hash) && parsed_json?(value)
12     assign(value.to_json)
13   else
14     super
15   end
16 end