Sha256: 8f81bd9591b81035d0a6f9f65568b364fd91f2c395559b5708c2b7057a8e5b62

Contents?: true

Size: 376 Bytes

Versions: 7

Compression:

Stored size: 376 Bytes

Contents

class DiscoApp::AppInstalledJob < DiscoApp::ShopJob

  include DiscoApp::Concerns::AppInstalledJob

  DEVELOPMENT_PLAN_ID = 1

  # Implement the default_plan method to define an initial plan for shops based
  # on their status.
  def default_plan
    @default_plan ||= begin
      DiscoApp::Plan.find(DEVELOPMENT_PLAN_ID) if @shop.plan_name === 'affiliate'
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 test/dummy/app/jobs/disco_app/app_installed_job.rb
disco_app-0.18.0 test/dummy/app/jobs/disco_app/app_installed_job.rb
disco_app-0.18.2 test/dummy/app/jobs/disco_app/app_installed_job.rb
disco_app-0.18.3 test/dummy/app/jobs/disco_app/app_installed_job.rb
disco_app-0.18.6 test/dummy/app/jobs/disco_app/app_installed_job.rb
disco_app-0.18.4 test/dummy/app/jobs/disco_app/app_installed_job.rb
disco_app-0.18.1 test/dummy/app/jobs/disco_app/app_installed_job.rb