Skip to content
Browse files

Remove rails 3 depreciation warning

  • Loading branch information...
1 parent 5134532 commit ddb7c1e85bf6bae5789efc382f36b157d45ee3ed @jrallison jrallison committed with jstorimer May 27, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/delayed/paperclip.rb
View
10 lib/delayed/paperclip.rb
@@ -33,7 +33,7 @@ def process_in_background(name)
return unless self.send(:"#{name}_processing?")
self.send("#{name}_processing=", false)
- self.save(false)
+ self.save(:validate => false)
end
define_method "#{name}_processing!" do
@@ -53,7 +53,7 @@ def process_in_background(name)
module InstanceMethods
PAPERCLIP_ATTRIBUTES = ['_file_size', '_file_name', '_content_type', '_updated_at']
-
+
def attachment_has_changed?(name)
PAPERCLIP_ATTRIBUTES.each do |attribute|
full_attribute = "#{name}#{attribute}_changed?".to_sym
@@ -72,11 +72,11 @@ def delayed_job?
def resque?
defined? Resque
end
-
+
def column_exists?(column)
self.class.columns_hash.has_key?(column.to_s)
end
- end
+ end
end
end
@@ -102,7 +102,7 @@ def url_with_processed style = default_style, include_updated_timestamp = true
end
end
end
-
+
alias_method_chain :url, :processed
end
end

0 comments on commit ddb7c1e

Please sign in to comment.
Something went wrong with that request. Please try again.