Sha256: f1e9694c83368041e074ad40c81da6248fc6f5169943a31f799bcfecf1bf2c70

Contents?: true

Size: 995 Bytes

Versions: 21

Compression:

Stored size: 995 Bytes

Contents

# frozen_string_literal: true

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', setting_type: 'boolean',
    description: 'Are ads removed from the site with this plan?'
  )
  PaidUp.add_feature(
    slug: 'groups', title: 'Groups', setting_type: 'rolify_rows',
    description: 'How many groups are allowed with this plan?'
    # 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', setting_type: 'table_rows',
    description: 'How many doodads included with this plan?'
  )
  PaidUp.add_feature(
    slug: 'posts', title: 'Posts', setting_type: 'table_rows',
    description: 'How many posts included with this plan?'
  )
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
paid_up-0.13.22 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.21 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.17 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.16 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.14 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.13 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.12 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.11 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.10 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.9 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.8 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.7 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.6 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.5 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.4 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.3 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.2 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.1 spec/dummy/config/initializers/paid_up.rb
paid_up-0.13.0 spec/dummy/config/initializers/paid_up.rb
paid_up-0.12.4 spec/dummy/config/initializers/paid_up.rb