player_script -> player_script_tag

This commit is contained in:
Marcin Kulik 2012-11-19 21:30:45 +01:00
parent 4f06a81ad1
commit 4fba36778e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
<div class="player"></div>
<%= player_script(asciicast,
<%= player_script_tag(asciicast,
:speed => local_assigns[:speed],
:hud => local_assigns[:hud]
) %>