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
56d6b240
Commit
56d6b240
authored
Aug 13, 2010
by
Fiona Foo & Nate Clark
Committed by
Jon Yurek
Aug 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes issue where attachment styles are losing format options when rails class caching is turned on
parent
bb2d3b01
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/paperclip/attachment.rb
+1
-1
test/attachment_test.rb
+1
-1
No files found.
lib/paperclip/attachment.rb
View file @
56d6b240
...
...
@@ -57,7 +57,7 @@ module Paperclip
unless
@normalized_styles
@normalized_styles
=
{}
(
@styles
.
respond_to?
(
:call
)
?
@styles
.
call
(
self
)
:
@styles
).
each
do
|
name
,
args
|
@normalized_styles
[
name
]
=
Paperclip
::
Style
.
new
(
name
,
args
,
self
)
@normalized_styles
[
name
]
=
Paperclip
::
Style
.
new
(
name
,
args
.
dup
,
self
)
end
end
@normalized_styles
...
...
test/attachment_test.rb
View file @
56d6b240
...
...
@@ -340,7 +340,7 @@ class AttachmentTest < Test::Unit::TestCase
context
"An attachment with styles but no processors defined"
do
setup
do
rebuild_model
:processors
=>
[],
:styles
=>
{
:something
=>
1
}
rebuild_model
:processors
=>
[],
:styles
=>
{
:something
=>
'1'
}
@dummy
=
Dummy
.
new
@file
=
StringIO
.
new
(
"..."
)
end
...
...
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