I am converting my 2.3.8 Rails app to 3.1.1
I have much of it working.
When I attempted to play a video and I found out that the function
“player” is undefined.
The (latest?) version of
vendor\bundle\ruby\1.9.1\gems\jw_player_helper-0.0.1\lib\jw_player_helper\helper.rb
uses
def video_player(flashvars, attributes = {} , params = {})
instead of
vendor\plugins\jw-playr-hlpr\lib\jw_player_helper.rb
def player(player_options = {}, flash_options = {})
My code calls player from 20-or-so places.
What’s the RoR way of fixing this?
Should I modify all 20 calls?
Should I wrap the player method?
If I provide a delegate by using a Wrapper Design Pattern, where in the
project tree should I put it?