lib/app_manager/config.rb in app_manager-1.1.0 vs lib/app_manager/config.rb in app_manager-1.1.1
- old
+ new
@@ -10,14 +10,14 @@
attr_accessor :shopify_api_version
attr_accessor :shopify_table_name
attr_accessor :shopify_domain_field
attr_accessor :plan_id_or_name_field
attr_accessor :field_names
+ attr_accessor :refresh_by_request_params
-
-
def initialize
+ @refresh_by_request_params = true
@expires_in = 1.day
@enable_caching = true
@app_url = nil
@shopify_api_key = nil
@shopify_api_version = nil
@@ -33,10 +33,11 @@
'created_at' => 'created_at', # 2022-04-15 10:43:05
'trial_activated_at' => 'trial_activated_at',
'email' => 'email'
}
@fs = AppManager::FailSafe.new
+ AppManager.clear_cache
end
def expires_in
@expires_in
end
@@ -75,8 +76,11 @@
def field_names
@field_names
end
+ def refresh_by_request_params?
+ @refresh_by_request_params
+ end
end
end