Add third parameter to flowplayer_for to match example and Player#initialize.
This commit is contained in:
parent
1566d96fa9
commit
cc2d7098d6
@ -1,16 +1,16 @@
|
|||||||
module Flowplayer
|
module Flowplayer
|
||||||
module Helper
|
module Helper
|
||||||
|
|
||||||
# flowplayer_for :hubble do |f|
|
# flowplayer_for :hubble do |f|
|
||||||
# f.option 'foo'
|
# f.option 'foo'
|
||||||
# f.onLoad do
|
# f.onLoad do
|
||||||
# 'this.unmute();'
|
# 'this.unmute();'
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
|
||||||
def flowplayer_for(id, swf, &block)
|
def flowplayer_for(id, swf, lib='jquery', &block)
|
||||||
Player.new(id, swf, &block).script_tags.html_safe
|
Player.new(id, swf, lib, &block).script_tags.html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user