|
|
@ -3,7 +3,7 @@ ActiveAdmin.register AdminUser do |
|
|
|
|
|
|
|
|
|
|
|
controller do |
|
|
|
controller do |
|
|
|
def update_resource(object, attributes) |
|
|
|
def update_resource(object, attributes) |
|
|
|
update_method = attributes.first[:password].present? ? :update_attributes : :update_without_password |
|
|
|
update_method = attributes.first[:password].present? ? :update : :update_without_password |
|
|
|
object.send(update_method, *attributes) |
|
|
|
object.send(update_method, *attributes) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|