From 4fba36778e66a229521099c4240c20c7b8c332f0 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 19 Nov 2012 21:30:45 +0100 Subject: [PATCH] player_script -> player_script_tag --- app/helpers/asciicasts_helper.rb | 2 +- app/views/asciicasts/_player.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/asciicasts_helper.rb b/app/helpers/asciicasts_helper.rb index 17c8499..9300274 100644 --- a/app/helpers/asciicasts_helper.rb +++ b/app/helpers/asciicasts_helper.rb @@ -1,6 +1,6 @@ module AsciicastsHelper - def player_script(asciicast, options = {}) + def player_script_tag(asciicast, options = {}) speed = (options[:speed] || 1).to_f benchmark = !!params[:bm] auto_play = options.key?(:auto_play) ? !!options[:auto_play] : false diff --git a/app/views/asciicasts/_player.html.erb b/app/views/asciicasts/_player.html.erb index 5a15295..9c02a4e 100644 --- a/app/views/asciicasts/_player.html.erb +++ b/app/views/asciicasts/_player.html.erb @@ -1,5 +1,5 @@
-<%= player_script(asciicast, +<%= player_script_tag(asciicast, :speed => local_assigns[:speed], :hud => local_assigns[:hud] ) %>