title: How can one override a class method inside a module inside a gem?
body: <p>I'm trying to add a rescue statement to an otherwise failing gem. The trouble is is that I'm not correctly overriding the original gem's method. How can I accomplish this?</p>
  
  <p><strong>Original Gem</strong></p>
  
  <pre><code>module OmniAuth
    class Configuration
      include Singleton
        def add_camelization(name, camelized)
          self.camelizations[name.to_s] = camelized.to_s
        end
  </code></pre>
  
  <p><strong>initializers/omniauth.rb</strong></p>
  
  <pre><code>module OmniAuth
    class Configuration
      def add_camelization(name, camelized)
        begin
          self.camelizations[name.to_s] = camelized.to_s
        rescue
          puts "No camelization for #{camelized}"
        end
        # ^ This rescue statement is not being called to replace the original gem's method.
      end
    end
  end
  </code></pre>