Skip to content

Instantly share code, notes, and snippets.

@camkidman
Created October 10, 2014 17:09
Show Gist options
  • Save camkidman/f8de2b2b99a6ba65665e to your computer and use it in GitHub Desktop.
Save camkidman/f8de2b2b99a6ba65665e to your computer and use it in GitHub Desktop.
Error: #<NoMethodError: undefined method `new' for RbConfig:Module>
PaypalAdaptive.module_eval do
def self.config(env = nil, config_override = {})
env ||= default_env_for_config
raise "Please provide an environment" unless env
@configs ||= Hash.new
@configs[env] ||= Config.new(env, config_override)
end
end
pay_request = ::PaypalAdaptive::Request.new(nil, paypal_config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment