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