Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
whaleback
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
whaleback
Commits
2a1f34d1
Commit
2a1f34d1
authored
6 years ago
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve gem require
parent
ec70c6db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
whaleback.rb
lib/whaleback.rb
+12
-1
No files found.
lib/whaleback.rb
View file @
2a1f34d1
...
...
@@ -2,5 +2,16 @@ require "whaleback/version"
require
'paperclip'
module
Whaleback
# Your code goes here...
require
'whaleback/errors'
require
'whaleback/media_column'
ActiveRecord
::
Base
.
include
(
Whaleback
::
MediaColumn
)
module
Media
def
self
.
table_name_prefix
'whaleback_media_'
end
autoload
:Obj
,
'whaleback/media/obj'
autoload
:Attachment
,
'whaleback/media/attachment'
end
end
This diff is collapsed.
Click to expand it.
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