gregbell/active_admin — pull request #1631 by s0meone (2012-08-31 21:26:49+00:00)
Title: Prevent print css to get media value screen on second requests

This fixes #1182.

The problem is that the options hash from a `ActiveAdmin::Stylesheet` instance is directly passed into Rails' `stylesheet_link_tag` helper. `stylesheet_link_tag` modifies this hash and clears it. So every other request gets an empty options hash (without media value so it defaults to screen).

A simple dup of the options hash before passing it to `stylesheet_link_tag` fixes this issue.