diff --git a/lib/wash_out.rb b/lib/wash_out.rb index b6952c3a..75ce97cc 100644 --- a/lib/wash_out.rb +++ b/lib/wash_out.rb @@ -38,7 +38,9 @@ def wash_out(controller_name, options={}) end Mime::Type.register "application/soap+xml", :soap -ActiveRecord::Base.send :extend, WashOut::Model if defined?(ActiveRecord) +ActiveSupport.on_load(:active_record) do + extend WashOut::Model +end if defined?(ActiveRecord) ActionController::Renderers.add :soap do |what, options| _render_soap(what, options)