Skip to content
This repository was archived by the owner on Jul 10, 2018. It is now read-only.

Commit 8f7f29f

Browse files
committed
Fix condition to include Schema, using 'ActiveRecord::Base' instead of 'ActiveRecord' solo
1 parent 2c6aa8a commit 8f7f29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/paperclip/glue.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def self.included(base)
88
base.extend ClassMethods
99
base.send :include, Callbacks
1010
base.send :include, Validators
11-
base.send :include, Schema if defined? ActiveRecord
11+
base.send :include, Schema if defined? ActiveRecord::Base
1212

1313
locale_path = Dir.glob(File.dirname(__FILE__) + "/locales/*.{rb,yml}")
1414
I18n.load_path += locale_path unless I18n.load_path.include?(locale_path)

0 commit comments

Comments
 (0)