Module: Dragonfly::DataMapperExtensions::InstanceMethods

Defined in:
lib/dm-dragonfly.rb

Instance Method Summary collapse

Instance Method Details

#dirty_self?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/dm-dragonfly.rb', line 30

def dirty_self?
  dragonfly_attachments.keys.any?{|k| !!send(k) && !send("#{k}_uid")} || super
end