Commit 47db66f2 by Prem Sichanugrist

Do not require railtie unless Rails is defined

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