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
17f1dbfa
Commit
17f1dbfa
authored
Jun 09, 2010
by
joeljunstrom
Committed by
Jon Yurek
Jun 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Paperclip::Railtie.insert should be wrapped in a initializer block
parent
c4ca01d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/paperclip/railtie.rb
+4
-2
No files found.
lib/paperclip/railtie.rb
View file @
17f1dbfa
...
...
@@ -4,8 +4,10 @@ module Paperclip
if
defined?
Rails
::
Railtie
require
'rails'
class
Railtie
<
Rails
::
Railtie
ActiveSupport
.
on_load
:active_record
do
Paperclip
::
Railtie
.
insert
initializer
'paperclip.insert_into_active_record'
do
ActiveSupport
.
on_load
:active_record
do
Paperclip
::
Railtie
.
insert
end
end
rake_tasks
do
load
"tasks/paperclip.rake"
...
...
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