From cc2d7098d6fb82313d6965258746e353eb02fca4 Mon Sep 17 00:00:00 2001 From: Pat George Date: Tue, 19 Apr 2011 16:02:05 -0400 Subject: [PATCH] Add third parameter to flowplayer_for to match example and Player#initialize. --- lib/flowplayer/railties/helper.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/flowplayer/railties/helper.rb b/lib/flowplayer/railties/helper.rb index c5e3c61..24b052c 100644 --- a/lib/flowplayer/railties/helper.rb +++ b/lib/flowplayer/railties/helper.rb @@ -1,16 +1,16 @@ module Flowplayer module Helper - + # flowplayer_for :hubble do |f| # f.option 'foo' # f.onLoad do - # 'this.unmute();' + # 'this.unmute();' # end - - - def flowplayer_for(id, swf, &block) - Player.new(id, swf, &block).script_tags.html_safe + + + def flowplayer_for(id, swf, lib='jquery', &block) + Player.new(id, swf, lib, &block).script_tags.html_safe end - + end end \ No newline at end of file