Commit 47db66f2 by Prem Sichanugrist

Do not require railtie unless Rails is defined

Fixes #843
parent fe06db45
......@@ -46,11 +46,12 @@ require 'paperclip/validators'
require 'paperclip/instance_methods'
require 'paperclip/logger'
require 'paperclip/helpers'
require 'paperclip/railtie'
require 'mime/types'
require 'logger'
require 'cocaine'
require 'paperclip/railtie' if defined?(Rails)
# The base module that gets included in ActiveRecord::Base. See the
# documentation for Paperclip::ClassMethods for more useful information.
module Paperclip
......
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