Module: PaidUp
- Defined in:
- lib/paid_up.rb,
lib/paid_up/engine.rb,
lib/paid_up/feature.rb,
lib/paid_up/railtie.rb,
lib/paid_up/version.rb,
app/models/paid_up/plan.rb,
lib/paid_up/subscription.rb,
lib/paid_up/configuration.rb,
app/models/paid_up/ability.rb,
lib/paid_up/mixins/paid_for.rb,
app/models/paid_up/unlimited.rb,
lib/generators/paid_up/utils.rb,
lib/paid_up/extensions/stripe.rb,
lib/paid_up/mixins/subscriber.rb,
lib/paid_up/extensions/integer.rb,
app/helpers/paid_up/plans_helper.rb,
lib/paid_up/feature_setting_type.rb,
lib/paid_up/validators/table_rows.rb,
app/helpers/paid_up/paid_up_helper.rb,
lib/paid_up/validators/rolify_rows.rb,
app/helpers/paid_up/features_helper.rb,
app/models/paid_up/plan_feature_setting.rb,
lib/paid_up/feature_setting_types/table.rb,
app/controllers/paid_up/plans_controller.rb,
app/helpers/paid_up/subscriptions_helper.rb,
lib/paid_up/feature_setting_types/rolify.rb,
app/controllers/paid_up/paid_up_controller.rb,
app/controllers/paid_up/subscriptions_controller.rb,
lib/generators/paid_up/install/install_generator.rb
Overview
Defined Under Namespace
Modules: Ability, Extensions, FeaturesHelper, Generators, Mixins, PaidUpHelper, PlansHelper, SubscriptionsHelper, Unlimited, Validators
Classes: Configuration, Engine, Feature, FeatureSettingType, InstallGenerator, PaidUpController, Plan, PlanFeatureSetting, PlansController, Railtie, RolifyFeatureSettingType, Subscription, SubscriptionsController, TableFeatureSettingType
Constant Summary
collapse
- VERSION =
File.read(File.expand_path('../../../VERSION', __FILE__))
Class Method Summary
collapse
Class Method Details
.add_feature(params) ⇒ Object
7
8
9
10
|
# File 'lib/paid_up/feature.rb', line 7
def self.add_feature(params)
feature = PaidUp::Feature.new(params)
@feature_object[feature.slug.to_sym] = feature
end
|
.configuration ⇒ Object
10
11
12
|
# File 'lib/paid_up/configuration.rb', line 10
def self.configuration
@configuration ||= PaidUp::Configuration.new
end
|
5
6
7
8
|
# File 'lib/paid_up/configuration.rb', line 5
def self.configure(configuration = PaidUp::Configuration.new)
block_given? && yield(configuration)
@configuration = configuration
end
|
.features ⇒ Object
12
13
14
|
# File 'lib/paid_up/feature.rb', line 12
def self.features
@feature_object
end
|
.version_string ⇒ Object
6
7
8
|
# File 'lib/paid_up/version.rb', line 6
def self.version_string
"PaidUp version #{PaidUp::VERSION}"
end
|