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
318d0b29
Commit
318d0b29
authored
Jun 30, 2009
by
Nick Quaranto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting encodings and fixing arity so the tests actually run
parent
121609fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
+3
-1
lib/paperclip/attachment.rb
+1
-0
test/attachment_test.rb
+1
-0
test/helper.rb
+1
-1
No files found.
lib/paperclip/attachment.rb
View file @
318d0b29
# encoding: utf-8
module
Paperclip
module
Paperclip
# The Attachment class manages the files for a given attachment. It saves
# The Attachment class manages the files for a given attachment. It saves
# when the model saves, deletes when the model is destroyed, and processes
# when the model saves, deletes when the model is destroyed, and processes
...
...
test/attachment_test.rb
View file @
318d0b29
# encoding: utf-8
require
'test/helper'
require
'test/helper'
class
Dummy
class
Dummy
...
...
test/helper.rb
View file @
318d0b29
...
@@ -40,7 +40,7 @@ def reset_class class_name
...
@@ -40,7 +40,7 @@ def reset_class class_name
end
end
def
reset_table
table_name
,
&
block
def
reset_table
table_name
,
&
block
block
||=
lambda
{
true
}
block
||=
lambda
{
|
table
|
true
}
ActiveRecord
::
Base
.
connection
.
create_table
:dummies
,
{
:force
=>
true
},
&
block
ActiveRecord
::
Base
.
connection
.
create_table
:dummies
,
{
:force
=>
true
},
&
block
end
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