1

I've a method called cama_current_user provided by a Gem Camaleon CMS which is used all over inside the Gem. Now I'm using this Gem with my application where I need to override the method `cama_current_user' by doing something like this,

  def cama_current_user
    @current_user
  end

I've added this method inside ApplicationController, ApplicationHelper and even added a new module like this,

module CamaleonCms::SessionHelper
  def cama_current_user
    @current_user
  end
end

but none of these methods are invoking during the execution. So How can I override the existing method definition provided by the Gem.

Any suggestions will be appreciated.Thank you !!

Community
  • 1
  • 1
Bibek Sharma
  • 3,210
  • 6
  • 42
  • 64

0 Answers0