Allow size to be passed to player helper in options

openid
Marcin Kulik 11 years ago
parent 3041a646e2
commit 249117f80a

@ -23,7 +23,7 @@ module AsciicastsHelper
renderer_class: renderer_class,
auto_play: options.key?(:auto_play) ? !!options[:auto_play] : false,
hud: options.key?(:hud) ? !!options[:hud] : true,
size: params[:size] || 'small'
size: options[:size] || params[:size] || 'small'
}
end

Loading…
Cancel
Save