Commit 2747087c by Jon Yurek

Changed string concatenation+, because ParseTree doesn't understand inline string concatenation

parent c7b802cb
......@@ -235,8 +235,8 @@ module Paperclip
# Adds errors if thumbnail creation fails. The same as specifying :whiny_thumbnails => true.
def validates_attachment_thumbnails name, options = {}
warn('[DEPRECATED] validates_attachment_thumbnail is deprecated. '
'This validation is on by default and will be removed from future versions. '
warn('[DEPRECATION] validates_attachment_thumbnail is deprecated. ' +
'This validation is on by default and will be removed from future versions. ' +
'If you wish to turn it off, supply :whiny => false in your definition.')
attachment_definitions[name][:whiny_thumbnails] = true
end
......
......@@ -199,8 +199,8 @@ module Paperclip
# style as arguments. This hash can be added to with your own proc if
# necessary.
def self.interpolations
warn('[DEPRECATION] Paperclip::Attachment.interpolations is deprecated '
'and will be removed from future versions. '
warn('[DEPRECATION] Paperclip::Attachment.interpolations is deprecated ' +
'and will be removed from future versions. ' +
'Use Paperclip.interpolates instead')
Paperclip::Interpolations
end
......
......@@ -128,6 +128,8 @@ module Paperclip
# separate parts of your file name.
module S3
def self.extended base
warn('[DEPRECATION] S3 support through RightAWS is deprecated. S3 support will ' +
'be changed to AWS::S3 in a future version.')
require 'right_aws'
base.instance_eval do
@s3_credentials = parse_credentials(@options[:s3_credentials])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment