Commit 900c8395 by Isaac Betesh

If Rails is defined but Rails::Railtie is not, don't try to load the Railtie

parent ef1f40c1
...@@ -69,7 +69,7 @@ require 'mimemagic/overlay' ...@@ -69,7 +69,7 @@ require 'mimemagic/overlay'
require 'logger' require 'logger'
require 'cocaine' 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 # 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.
......
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