Sha256: 93a3356dd5e31a350b9d23501c066ec0ed97b3aad85db9567f30799d366fa111

Contents?: true

Size: 850 Bytes

Versions: 37

Compression:

Stored size: 850 Bytes

Contents

PaidUp.configure do |config|
  config.anonymous_customer_stripe_id = 'anonymous-customer'
  config.anonymous_plan_stripe_id = 'anonymous-plan'
  config.free_plan_stripe_id = 'free-plan'

  PaidUp.add_feature(
      slug: 'ad_free',
      title: 'Ad Free',
      description: 'Are ads removed from the site with this plan?',
      setting_type: 'boolean'
  )
  PaidUp.add_feature(
      slug: 'groups',
      title: 'Groups',
      description: 'How many groups are allowed with this plan?',
      setting_type: 'rolify_rows'  # Enables table row counting that is enabled by a positive value
# for the PaidUp::PlanFeatureSetting.setting associated with this PaidUp::Feature
  )
  PaidUp.add_feature(
      slug: 'doodads',
      title: 'Doodads',
      description: 'How many doodads included with this plan?',
      setting_type: 'table_rows'
  )
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
paid_up-0.9.13 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.12 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.11 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.10 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.9 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.8 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.7 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.6 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.5 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.4 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.3 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.2 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.1 spec/dummy/config/initializers/paid_up.rb
paid_up-0.9.0 spec/dummy/config/initializers/paid_up.rb
paid_up-0.8.1 spec/dummy/config/initializers/paid_up.rb
paid_up-0.7.11 spec/dummy/config/initializers/paid_up.rb
paid_up-0.7.10 spec/dummy/config/initializers/paid_up.rb
paid_up-0.7.9 spec/dummy/config/initializers/paid_up.rb
paid_up-0.7.8 spec/dummy/config/initializers/paid_up.rb
paid_up-0.7.7 spec/dummy/config/initializers/paid_up.rb