Problem in integrating Juggernaut chat plugin with Community Engine

Hello,

  I have been trying to integrate juggernaut chat plugin with

Community-engline and as rails decided to deprecate
add_variables_to_assigns method
in rails 2.2. They don’t include this on the list of deprecated methods
so I
don’t know how to find an alternative to this method. This method is
used by
the juggernaut plugin and I wanna try getting it to work with rails 2.2.
I
tried copying the source code of this method and
add_instance_variable_names
source to the application.rb file but now I’m getting NameError
(uninitialized class variable @@protected_view_variables in
ApplicationController). Does anyone know if there are any alternatives
to
these methods?

Following is the error

NameError (undefined local variable or method add_variables_to_assigns' for #<ChatRoomsController:0xb7342530>): /vendor/plugins/juggernaut/lib/juggernaut.rb:145:inrender’
/app/controllers/chat_rooms_controller.rb:89:in `send_data’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in
`send’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in
`perform_action_without_filters’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in
`call_filters’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark’

/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’

Thanks & Regards,

Saideep Annadatha