Created
October 10, 2014 17:09
-
-
Save camkidman/f8de2b2b99a6ba65665e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: #<NoMethodError: undefined method `new' for RbConfig:Module> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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