un comment puma
This commit is contained in:
@@ -17,7 +17,7 @@ class Crm::CustomersController < BaseCrmController
|
|||||||
@crm_customers = Customer.all
|
@crm_customers = Customer.all
|
||||||
else
|
else
|
||||||
@crm_customers = Customer.search(filter)
|
@crm_customers = Customer.search(filter)
|
||||||
paymal_customer = Customer.search_paypar_account_no(filter)
|
# paymal_customer = Customer.search_paypar_account_no(filter)
|
||||||
# search account no from paypar
|
# search account no from paypar
|
||||||
if type == "card"
|
if type == "card"
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,26 @@ class Settings::MenuItemAttributesController < ApplicationController
|
|||||||
# DELETE /settings/menu_item_attributes/1
|
# DELETE /settings/menu_item_attributes/1
|
||||||
# DELETE /settings/menu_item_attributes/1.json
|
# DELETE /settings/menu_item_attributes/1.json
|
||||||
def destroy
|
def destroy
|
||||||
@settings_menu_item_attribute.destroy
|
item_attribute_id =@settings_menu_item_attribute.id
|
||||||
|
item_attribute_id_string=""+item_attribute_id.to_s+""
|
||||||
|
if @settings_menu_item_attribute.destroy
|
||||||
|
menu_items =MenuItem.all
|
||||||
|
menu_items.each do |item|
|
||||||
|
if item.item_attributes.include?(item_attribute_id)
|
||||||
|
item_update =item.item_attributes.reject { |i| i == item_attribute_id }
|
||||||
|
item.item_code =item.item_code
|
||||||
|
item.item_attributes =item_update
|
||||||
|
item.save
|
||||||
|
end
|
||||||
|
if item.item_attributes.include?(item_attribute_id_string)
|
||||||
|
item_update =item.item_attributes.reject { |i| i == item_attribute_id_string }
|
||||||
|
item.item_code =item.item_code
|
||||||
|
item.item_attributes =item_update
|
||||||
|
item.save
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
# @settings_menu_item_attribute.destroy
|
||||||
flash[:notice] = 'Menu item attribute was successfully destroyed.'
|
flash[:notice] = 'Menu item attribute was successfully destroyed.'
|
||||||
render :json => {:status=> "Success", :url => settings_menu_item_attributes_path }.to_json
|
render :json => {:status=> "Success", :url => settings_menu_item_attributes_path }.to_json
|
||||||
# respond_to do |format|
|
# respond_to do |format|
|
||||||
|
|||||||
@@ -178,7 +178,8 @@ class SalePayment < ApplicationRecord
|
|||||||
def self.redeem(paypar_url,token,membership_id,received_amount,sale_id)
|
def self.redeem(paypar_url,token,membership_id,received_amount,sale_id)
|
||||||
# membership_actions_data = MembershipAction.find_by_membership_type("redeem");
|
# membership_actions_data = MembershipAction.find_by_membership_type("redeem");
|
||||||
membership_actions_data = PaymentMethodSetting.find_by_payment_method("Redeem")
|
membership_actions_data = PaymentMethodSetting.find_by_payment_method("Redeem")
|
||||||
|
puts "This is membership_actions_data"
|
||||||
|
puts membership_actions_data.to_json
|
||||||
if !membership_actions_data.nil?
|
if !membership_actions_data.nil?
|
||||||
|
|
||||||
url = paypar_url.to_s + membership_actions_data.gateway_url.to_s
|
url = paypar_url.to_s + membership_actions_data.gateway_url.to_s
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
# application_path="#{File.expand_path("../..", __FILE__)}"
|
application_path="#{File.expand_path("../..", __FILE__)}"
|
||||||
# directory application_path
|
directory application_path
|
||||||
# #environment ENV.fetch("RAILS_ENV") { "production" }
|
#environment ENV.fetch("RAILS_ENV") { "production" }
|
||||||
# environment "production"
|
environment "production"
|
||||||
# pidfile "#{application_path}/tmp/puma/pid"
|
pidfile "#{application_path}/tmp/puma/pid"
|
||||||
# state_path "#{application_path}/tmp/puma/state"
|
state_path "#{application_path}/tmp/puma/state"
|
||||||
# stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
|
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
|
||||||
# port ENV.fetch("PORT") { 62158 }
|
port ENV.fetch("PORT") { 62158 }
|
||||||
# workers 2
|
workers 2
|
||||||
# preload_app!
|
preload_app!
|
||||||
|
|||||||
Reference in New Issue
Block a user