Skip to content

Instantly share code, notes, and snippets.

From e6ec1f637ab3d6c235eef05142abf373e08f5c4b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Garn=C3=A6s?= <andreas.garnaes@gmail.com>
Date: Thu, 2 Sep 2010 12:35:37 +0200
Subject: [PATCH] ActiveModel#to_xml fix (renamed parameter).
---
activemodel/lib/active_model/serializers/xml.rb | 2 +-
activeresource/test/cases/base_test.rb | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
require 'RMagick'
class WatermarkMe
def initialize(app, args)
@app = app
@watermark_text, @mime_types = *args
@mime_types ||= %w[image/jpeg image/png image/gif]
end
def call(env)