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

Commit

Permalink
If Rails is defined but Rails::Railtie is not, don't try to load the …
Browse files Browse the repository at this point in the history
…Railtie
  • Loading branch information
betesh committed Jun 17, 2015
1 parent ef1f40c commit 900c839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
require 'logger'
require 'cocaine'

require 'paperclip/railtie' if defined?(Rails)
require 'paperclip/railtie' if defined?(Rails::Railtie)

# The base module that gets included in ActiveRecord::Base. See the
# documentation for Paperclip::ClassMethods for more useful information.
Expand Down

0 comments on commit 900c839

Please sign in to comment.