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
e0b139d0
Commit
e0b139d0
authored
Jul 29, 2011
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor code just a little bit
parent
593acb1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lib/paperclip.rb
+2
-4
No files found.
lib/paperclip.rb
View file @
e0b139d0
...
@@ -179,10 +179,8 @@ module Paperclip
...
@@ -179,10 +179,8 @@ module Paperclip
module
Glue
module
Glue
def
self
.
included
base
#:nodoc:
def
self
.
included
base
#:nodoc:
base
.
extend
ClassMethods
base
.
extend
ClassMethods
if
base
.
respond_to?
(
"class_attribute"
)
base
.
class_attribute
:attachment_definitions
if
base
.
respond_to?
(
:class_attribute
)
base
.
class_attribute
:attachment_definitions
if
base
.
respond_to?
(
:set_callback
)
end
if
base
.
respond_to?
(
"set_callback"
)
base
.
send
:include
,
Paperclip
::
CallbackCompatability
::
Rails3
base
.
send
:include
,
Paperclip
::
CallbackCompatability
::
Rails3
else
else
base
.
send
:include
,
Paperclip
::
CallbackCompatability
::
Rails21
base
.
send
:include
,
Paperclip
::
CallbackCompatability
::
Rails21
...
...
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