Module: PayFeatures

Defined in:
lib/pay_features.rb,
lib/pay_features/plan.rb,
lib/pay_features/engine.rb,
lib/pay_features/version.rb,
app/models/pay_features/pay_feature.rb,
app/models/pay_features/plan_feature.rb,
app/jobs/pay_features/application_job.rb,
app/models/pay_features/application_record.rb,
app/helpers/pay_features/application_helper.rb,
app/mailers/pay_features/application_mailer.rb,
app/controllers/pay_features/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Plan Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, PayFeature, PlanFeature

Constant Summary collapse

VERSION =
'0.1.0'
@@plan_class =
'Plan'
@@plan_table =
'plans'

Class Method Summary collapse

Class Method Details

.plan_modelObject



17
18
19
20
21
22
23
# File 'lib/pay_features.rb', line 17

def self.plan_model
  if Rails.application.config.cache_classes
    @@plan_model ||= plan_class.constantize
  else
    plan_class.constantize
  end
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (PayFeatures)

    the object that the method was called on



13
14
15
# File 'lib/pay_features.rb', line 13

def self.setup
  yield self
end