module Shrine::Plugins::RemoveInvalid::AttacherMethods
Public Instance Methods
validate(*)
click to toggle source
Calls superclass method
# File lib/shrine/plugins/remove_invalid.rb, line 12 def validate(*) super ensure deassign if errors.any? end
Private Instance Methods
deassign()
click to toggle source
# File lib/shrine/plugins/remove_invalid.rb, line 20 def deassign destroy if changed? load_data @previous.data @previous = nil else load_data nil end end