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] ) %>