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

Commit

Permalink
don’t try to insert extensions into ActiveRecord::Attribute if it doe…
Browse files Browse the repository at this point in the history
…sn’t exist
  • Loading branch information
ronen committed Dec 30, 2014
1 parent 498c3ed commit 7af9d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schema_plus.rb
Expand Up @@ -153,7 +153,7 @@ def self.insert #:nodoc:
::ActiveRecord::Schema.send(:include, SchemaPlus::ActiveRecord::Schema)
::ActiveRecord::SchemaDumper.send(:include, SchemaPlus::ActiveRecord::SchemaDumper)
::ActiveRecord.const_set(:DB_DEFAULT, SchemaPlus::ActiveRecord::DB_DEFAULT)
::ActiveRecord::Attribute.send(:include, SchemaPlus::ActiveRecord::Attribute)
::ActiveRecord::Attribute.send(:include, SchemaPlus::ActiveRecord::Attribute) if defined? ::ActiveRecord::Attribute
end

end
Expand Down

0 comments on commit 7af9d3b

Please sign in to comment.