Class: Sequel::Plugins::SexyValidations::Validators::Presence
- Inherits:
-
SexyValidations::Validators::Presence
- Object
- SexyValidations::Validators::Presence
- Sequel::Plugins::SexyValidations::Validators::Presence
- Defined in:
- lib/sequel_sexy_validations/validators/presence.rb
Class Method Summary collapse
Class Method Details
.validate(model, attribute, value, options) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/sequel_sexy_validations/validators/presence.rb', line 9 def self.validate(model, attribute, value, ) real_value = case value.class.name when "Sequel::Plugins::Paperclip::Attachment" value.queued_file else value end super(model, attribute, real_value, ) end |