Sha256: a999642bf8228b757ab2a1d00b603f522afea723b25c802b330fb46aeb00de94

Contents?: true

Size: 260 Bytes

Versions: 5

Compression:

Stored size: 260 Bytes

Contents

module SolidusTecEstimator
  class Provider < ApplicationRecord
    has_many :spree_shipping_methods, class_name: "Spree::ShippingMethod"

    after_create :install_provider

    def install_provider
      self.class_name.constantize.install
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_tec_estimator-2.0.0 app/models/solidus_tec_estimator/provider.rb
solidus_tec_estimator-1.0.6 app/models/solidus_tec_estimator/provider.rb
solidus_tec_estimator-1.0.5 app/models/solidus_tec_estimator/provider.rb
solidus_tec_estimator-1.0.4 app/models/solidus_tec_estimator/provider.rb
solidus_tec_estimator-1.0.3 app/models/solidus_tec_estimator/provider.rb