acts_as_flying_saucer icon indicating copy to clipboard operation
acts_as_flying_saucer copied to clipboard

stylesheet_link_tag should overwrite 'media', not :media

Open MartinKoerner opened this issue 15 years ago • 1 comments

options = sources.extract_options!.stringify_keys options[:media] = 'print' if options[:media].blank?

In the first line, every key is converted to a string, in the second line you look for the :media key Maybe

options["media"] ||= 'print'

is better?

MartinKoerner avatar Feb 16 '10 15:02 MartinKoerner

Can options[:media] be a empty string? The actually code cover this, your example not.

igorbozato avatar Apr 03 '11 15:04 igorbozato