Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Do not require railtie unless Rails is defined
Browse files Browse the repository at this point in the history
Fixes #843
  • Loading branch information
sikachu committed Apr 25, 2012
1 parent fe06db4 commit 47db66f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/paperclip.rb
Expand Up @@ -46,11 +46,12 @@
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
Expand Down

0 comments on commit 47db66f

Please sign in to comment.