module Shrine::Plugins::RemoveInvalid::AttacherMethods

  1. lib/shrine/plugins/remove_invalid.rb

Methods

Public Instance

  1. validate

Public Instance methods

validate ()
[show source]
# File lib/shrine/plugins/remove_invalid.rb, line 11
def validate
  super
ensure
  if errors.any? && changed?
    _delete(get, action: :validate)
    _set(@old)
    remove_instance_variable(:@old)
  end
end