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
5078b563
Commit
5078b563
authored
Feb 24, 2012
by
Mike Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/tomhughes/paperclip
parents
04c95148
189ee9c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
lib/paperclip/attachment.rb
+1
-0
test/attachment_test.rb
+6
-0
No files found.
lib/paperclip/attachment.rb
View file @
5078b563
...
@@ -462,6 +462,7 @@ module Paperclip
...
@@ -462,6 +462,7 @@ module Paperclip
instance_write
(
:file_name
,
nil
)
instance_write
(
:file_name
,
nil
)
instance_write
(
:content_type
,
nil
)
instance_write
(
:content_type
,
nil
)
instance_write
(
:file_size
,
nil
)
instance_write
(
:file_size
,
nil
)
instance_write
(
:fingerprint
,
nil
)
instance_write
(
:updated_at
,
nil
)
instance_write
(
:updated_at
,
nil
)
end
end
...
...
test/attachment_test.rb
View file @
5078b563
...
@@ -925,6 +925,7 @@ class AttachmentTest < Test::Unit::TestCase
...
@@ -925,6 +925,7 @@ class AttachmentTest < Test::Unit::TestCase
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:fingerprint
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
assign
nil
@attachment
.
assign
nil
@attachment
.
save
@attachment
.
save
...
@@ -935,6 +936,7 @@ class AttachmentTest < Test::Unit::TestCase
...
@@ -935,6 +936,7 @@ class AttachmentTest < Test::Unit::TestCase
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:fingerprint
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
clear
@attachment
.
clear
@attachment
.
save
@attachment
.
save
...
@@ -945,6 +947,7 @@ class AttachmentTest < Test::Unit::TestCase
...
@@ -945,6 +947,7 @@ class AttachmentTest < Test::Unit::TestCase
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:fingerprint
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
destroy
@attachment
.
destroy
@existing_names
.
each
{
|
f
|
assert
!
File
.
exists?
(
f
)
}
@existing_names
.
each
{
|
f
|
assert
!
File
.
exists?
(
f
)
}
...
@@ -959,6 +962,7 @@ class AttachmentTest < Test::Unit::TestCase
...
@@ -959,6 +962,7 @@ class AttachmentTest < Test::Unit::TestCase
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:fingerprint
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
assign
nil
@attachment
.
assign
nil
@attachment
.
save
@attachment
.
save
...
@@ -969,6 +973,7 @@ class AttachmentTest < Test::Unit::TestCase
...
@@ -969,6 +973,7 @@ class AttachmentTest < Test::Unit::TestCase
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:fingerprint
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
clear
@attachment
.
clear
@attachment
.
save
@attachment
.
save
...
@@ -979,6 +984,7 @@ class AttachmentTest < Test::Unit::TestCase
...
@@ -979,6 +984,7 @@ class AttachmentTest < Test::Unit::TestCase
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_name
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:content_type
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:file_size
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:fingerprint
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
expects
(
:instance_write
).
with
(
:updated_at
,
nil
)
@attachment
.
destroy
@attachment
.
destroy
@existing_names
.
each
{
|
f
|
assert
File
.
exists?
(
f
)
}
@existing_names
.
each
{
|
f
|
assert
File
.
exists?
(
f
)
}
...
...
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