Skip to content

Commit

Permalink
Remove unused Gateway.current method
Browse files Browse the repository at this point in the history
The 'super' method referenced here doesn't exist.  It was removed in:
solidusio@df32600
  • Loading branch information
jordan-brough committed Apr 1, 2016
1 parent dfe0503 commit 2cb41d6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions core/app/models/spree/gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ def payment_source_class
CreditCard
end

# instantiates the selected gateway and configures with the options stored in the database
def self.current
super
end

def provider
gateway_options = options
gateway_options.delete :login if gateway_options.key?(:login) && gateway_options[:login].nil?
Expand Down
7 changes: 0 additions & 7 deletions sample/db/samples/payments.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# create payments based on the totals since they can't be known in YAML (quantities are random)
method = Spree::PaymentMethod.where(name: 'Credit Card', active: true).first

# Hack the current method so we're able to return a gateway without a RAILS_ENV
Spree::Gateway.class_eval do
def self.current
Spree::Gateway::Bogus.new
end
end

# This table was previously called spree_creditcards, and older migrations
# reference it as such. Make it explicit here that this table has been renamed.
Spree::CreditCard.table_name = 'spree_credit_cards'
Expand Down

0 comments on commit 2cb41d6

Please sign in to comment.