lib/attached.rb in attached-0.3.5 vs lib/attached.rb in attached-0.3.6
- old
+ new
@@ -71,10 +71,10 @@
define_method "#{name}=" do |file|
attachment_for(name).assign(file)
end
define_method "#{name}?" do
- attachment_for(name).file?
+ attachment_for(name).attached?
end
validates_each(name) do |record, attr, value|
attachment = record.attachment_for(name)
attachment.errors.each do |error|
\ No newline at end of file