Module: AppManager

Defined in:
lib/app_manager/set_local_storage.rb,
lib/app_manager.rb,
lib/app_manager/model.rb,
lib/app_manager/client.rb,
lib/app_manager/config.rb,
lib/app_manager/engine.rb,
lib/app_manager/actions.rb,
lib/app_manager/railtie.rb,
lib/app_manager/version.rb,
app/model/app_manager/app.rb,
lib/app_manager/fail_safe.rb,
app/model/app_manager/plan.rb,
lib/app_manager/exceptions.rb,
lib/app_manager/protection.rb,
app/model/app_manager/charge.rb,
lib/app_manager/client/plans.rb,
app/model/app_manager/discount.rb,
lib/app_manager/client/banners.rb,
lib/app_manager/graphql_helper.rb,
lib/app_manager/response_cache.rb,
app/model/app_manager/plan_user.rb,
lib/app_manager/api_cache_handler.rb,
lib/app_manager/client/connection.rb,
app/model/app_manager/extend_trial.rb,
app/model/app_manager/app_structure.rb,
app/model/app_manager/discount_plan.rb,
app/model/app_manager/discount_shop.rb,
app/services/app_manager/event_handler.rb,
app/model/app_manager/app_manager_record.rb,
app/model/app_manager/discount_link_plan.rb,
app/model/app_manager/discount_usage_log.rb,
app/controllers/app_manager/plans_controller.rb,
app/controllers/app_manager/banners_controller.rb,
app/controllers/app_manager/charges_controller.rb,
app/controllers/concerns/app_manager/authenticate.rb,
app/controllers/app_manager/application_controller.rb,
lib/generators/app_manager/install/install_generator.rb

Overview

app/middleware/set_cookie.rb

Defined Under Namespace

Modules: Actions, Authenticate, Generators, Model, Protection Classes: App, AppManagerRecord, AppStructure, ApplicationController, BannersController, Charge, ChargesController, Client, Config, Discount, DiscountLinkPlan, DiscountPlan, DiscountShop, DiscountUsageLog, Engine, Error, EventHandler, ExtendTrial, FailSafe, GraphqlHelper, ModelNotFound, Plan, PlanUser, PlansController, Railtie, SetLocalStorage

Constant Summary collapse

VERSION =
"2.3.3"

Class Method Summary collapse

Class Method Details

.clear_cacheObject



29
30
31
32
33
34
35
36
# File 'lib/app_manager.rb', line 29

def self.clear_cache
	begin
    Rails.cache.delete_matched("app-manager-cache/*")
		Rails.cache.delete_matched("app-manager-cache/#{ENV['SHOPIFY_APP_SLUG']}/*")
  rescue Exception => e
    Rollbar.error("APP MANAGER Error in Clear Cache #{e}")
	end
end

.configurationObject



25
26
27
# File 'lib/app_manager.rb', line 25

def self.configuration
  @configuration ||= AppManager::Config.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/app_manager.rb', line 21

def self.configure
  yield configuration  
end