player_script -> player_script_tag
This commit is contained in:
parent
4f06a81ad1
commit
4fba36778e
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="player"></div>
|
||||
<%= player_script(asciicast,
|
||||
<%= player_script_tag(asciicast,
|
||||
:speed => local_assigns[:speed],
|
||||
:hud => local_assigns[:hud]
|
||||
) %>
|
||||
|
Loading…
Reference in New Issue
Block a user