lib/serialize_with/railtie.rb in serialize_with-0.1.4 vs lib/serialize_with/railtie.rb in serialize_with-0.1.5
- old
+ new
@@ -1,10 +1,10 @@
module SerializeWith
class Railtie < Rails::Railtie
initializer "serialize_with.extend_active_record_base" do |app|
if defined?(ActiveRecord)
ActiveSupport.on_load(:active_record) do
- ActiveRecord::Base.include SerializeWith
+ ActiveRecord::Base.send(:include, SerializeWith)
end
end
end
end
end