From 6ecf79167310f26f007b18015f006e4c5c59d613 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Tue, 6 Jun 2017 09:47:24 +0630 Subject: [PATCH] update coutomer controller --- Gemfile | 2 ++ Gemfile.lock | 4 ++++ app/controllers/crm/customers_controller.rb | 1 + 3 files changed, 7 insertions(+) diff --git a/Gemfile b/Gemfile index bcbebe51..6058e7cc 100644 --- a/Gemfile +++ b/Gemfile @@ -91,3 +91,5 @@ end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem 'httparty', '~> 0.15.5' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index badb3aa4..7bf4f9a4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -92,6 +92,8 @@ GEM railties (>= 3.2, < 5.2) globalid (0.4.0) activesupport (>= 4.2.0) + httparty (0.15.5) + multi_xml (>= 0.5.2) i18n (0.8.4) jbuilder (2.6.4) activesupport (>= 3.0.0) @@ -114,6 +116,7 @@ GEM mini_portile2 (2.1.0) minitest (5.10.2) multi_json (1.12.1) + multi_xml (0.6.0) mysql2 (0.4.6) nio4r (2.1.0) nokogiri (1.7.2) @@ -247,6 +250,7 @@ DEPENDENCIES factory_girl_rails (~> 4.0) faker font-awesome-rails + httparty (~> 0.15.5) jbuilder (~> 2.5) jquery-rails kaminari! diff --git a/app/controllers/crm/customers_controller.rb b/app/controllers/crm/customers_controller.rb index d173888e..896d9d14 100644 --- a/app/controllers/crm/customers_controller.rb +++ b/app/controllers/crm/customers_controller.rb @@ -15,6 +15,7 @@ class Crm::CustomersController < ApplicationController # GET /crm/customers/new def new @crm_customer = Customer.new + @membership = Customer.get_member_group end # GET /crm/customers/1/edit