lib/serialize_with/railtie.rb in serialize_with-0.1.6 vs lib/serialize_with/railtie.rb in serialize_with-0.1.7

- 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 - self.include SerializeWith + ActiveRecord::Base.extend SerializeWith end end end end end