Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
2747087c
Commit
2747087c
authored
May 08, 2009
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed string concatenation+, because ParseTree doesn't understand inline string concatenation
parent
c7b802cb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
lib/paperclip.rb
+2
-2
lib/paperclip/attachment.rb
+2
-2
lib/paperclip/storage.rb
+2
-0
No files found.
lib/paperclip.rb
View file @
2747087c
...
@@ -235,8 +235,8 @@ module Paperclip
...
@@ -235,8 +235,8 @@ module Paperclip
# Adds errors if thumbnail creation fails. The same as specifying :whiny_thumbnails => true.
# Adds errors if thumbnail creation fails. The same as specifying :whiny_thumbnails => true.
def
validates_attachment_thumbnails
name
,
options
=
{}
def
validates_attachment_thumbnails
name
,
options
=
{}
warn
(
'[DEPRECAT
ED] validates_attachment_thumbnail is deprecated. '
warn
(
'[DEPRECAT
ION] validates_attachment_thumbnail is deprecated. '
+
'This validation is on by default and will be removed from future versions. '
'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.'
)
'If you wish to turn it off, supply :whiny => false in your definition.'
)
attachment_definitions
[
name
][
:whiny_thumbnails
]
=
true
attachment_definitions
[
name
][
:whiny_thumbnails
]
=
true
end
end
...
...
lib/paperclip/attachment.rb
View file @
2747087c
...
@@ -199,8 +199,8 @@ module Paperclip
...
@@ -199,8 +199,8 @@ module Paperclip
# style as arguments. This hash can be added to with your own proc if
# style as arguments. This hash can be added to with your own proc if
# necessary.
# necessary.
def
self
.
interpolations
def
self
.
interpolations
warn
(
'[DEPRECATION] Paperclip::Attachment.interpolations is deprecated '
warn
(
'[DEPRECATION] Paperclip::Attachment.interpolations is deprecated '
+
'and will be removed from future versions. '
'and will be removed from future versions. '
+
'Use Paperclip.interpolates instead'
)
'Use Paperclip.interpolates instead'
)
Paperclip
::
Interpolations
Paperclip
::
Interpolations
end
end
...
...
lib/paperclip/storage.rb
View file @
2747087c
...
@@ -128,6 +128,8 @@ module Paperclip
...
@@ -128,6 +128,8 @@ module Paperclip
# separate parts of your file name.
# separate parts of your file name.
module
S3
module
S3
def
self
.
extended
base
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'
require
'right_aws'
base
.
instance_eval
do
base
.
instance_eval
do
@s3_credentials
=
parse_credentials
(
@options
[
:s3_credentials
])
@s3_credentials
=
parse_credentials
(
@options
[
:s3_credentials
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment