lib/serialize_with/railtie.rb in serialize_with-0.1.3 vs lib/serialize_with/railtie.rb in serialize_with-0.1.4
- 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.send(:include, SerializeWith)
+ ActiveRecord::Base.include SerializeWith
end
end
end
end
end