Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated README, fix for using without configuration

  • Loading branch information...
commit ca70f1a99d74078ed35edac210797cd4c8881d65 1 parent 55e6815
@johankok johankok authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.rdoc
  2. +1 −1  lib/sisow/api/request.rb
View
2  README.rdoc
@@ -23,7 +23,7 @@ And update your bundle with <tt>bundle install</tt>
To be able to use the gem, you must first configure it. If you're on Rails, insert the following code in <tt>config/initializers/sisow.rb</tt>:
- Sisow.setup do |config|
+ Sisow.configure do |config|
config.merchant_key = 'your-merchant-key'
config.merchant_id = 'your-merchant-id'
View
2  lib/sisow/api/request.rb
@@ -38,7 +38,7 @@ def validate!; raise 'Implement me in a subclass'; end
private
def can_perform?
- !Sisow.configuration.merchant_id.empty? && !Sisow.configuration.merchant_key.empty?
+ !(Sisow.configuration.merchant_id.nil? || Sisow.configuration.merchant_id.empty?) && !(Sisow.configuration.merchant_key.nil? || Sisow.configuration.merchant_key.empty?)
end
def uri
Please sign in to comment.
Something went wrong with that request. Please try again.