Sha256: 1e4c80c8e3f86bd2dbd54c1b974828088a728406e8c36dc7a041cd5ac9e5ad56

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

class BillingIntegration < ActiveRecord::Base  
  
  def self.current
    self.first :conditions => ["environment = ? AND active = ?", RAILS_ENV, true]
  end
    
	validates_presence_of :name, :type

	@provier = nil
  @@providers = Set.new
  def self.register
    @@providers.add(self)
  end

  def self.providers
    @@providers.to_a
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree-enriquez-0.9.4 app/models/billing_integration.rb