Remove some pry and add address code
This commit is contained in:
parent
6789d44431
commit
d61621e198
|
@ -102,7 +102,6 @@ class Admin::UsersNewInterfaceController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
binding.pry
|
|
||||||
@user = User.find(params[:id])
|
@user = User.find(params[:id])
|
||||||
|
|
||||||
@user.update_attributes(params[:user])
|
@user.update_attributes(params[:user])
|
||||||
|
|
|
@ -94,7 +94,7 @@ def unset_all_lang_values
|
||||||
unless self[:temp_data].nil?
|
unless self[:temp_data].nil?
|
||||||
case self.attribute_field.markup
|
case self.attribute_field.markup
|
||||||
when "address"
|
when "address"
|
||||||
binding.pry
|
self["val"] = self["temp_data"]
|
||||||
when 'text_field','text_area'
|
when 'text_field','text_area'
|
||||||
if self.attribute_field.add_more
|
if self.attribute_field.add_more
|
||||||
self["val"] = self["temp_data"]
|
self["val"] = self["temp_data"]
|
||||||
|
|
Loading…
Reference in New Issue