Commit 2a1f34d1 by ivan Lan

Improve gem require

parent ec70c6db
...@@ -2,5 +2,16 @@ require "whaleback/version" ...@@ -2,5 +2,16 @@ require "whaleback/version"
require 'paperclip' require 'paperclip'
module Whaleback 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 end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment