Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not require railtie unless Rails is defined

Fixes #843
  • Loading branch information...
commit 47db66f28bfe28083deb7b95cb5ae0232fd65403 1 parent fe06db4
@sikachu sikachu authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/paperclip.rb
3  lib/paperclip.rb
@@ -46,11 +46,12 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.