Sha256: da9749cc2f9fde28284d7d87e9773bb93928e51fbbf7edcc8f991d300a4401f1

Contents?: true

Size: 864 Bytes

Versions: 21

Compression:

Stored size: 864 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',
    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?',
    # Table row counting: feature enabled by a positive value
    # for the PaidUp::PlanFeatureSetting.setting associated with this
    # PaidUp::Feature
    setting_type: 'table_rows'
  )
  PaidUp.add_feature(
    slug: 'doodads',
    title: 'Doodads',
    description: 'How many doodads included with this plan?',
    setting_type: 'rolify_rows'
  )
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
paid_up-0.13.22 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.21 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.17 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.16 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.14 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.13 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.12 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.11 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.10 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.9 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.8 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.7 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.6 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.5 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.4 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.3 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.2 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.1 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.13.0 lib/generators/paid_up/install/templates/initializer.rb
paid_up-0.12.4 lib/generators/paid_up/install/templates/initializer.rb