Sha256: 846e2023aee119268eb1317875ea00f7b38ddab3ce075f914157719550f10255

Contents?: true

Size: 235 Bytes

Versions: 6

Compression:

Stored size: 235 Bytes

Contents

class UsersController < ApplicationController
    def destroy_avatar
        avatar = requested_resource.avatars.find(params[:attachment_id])
        avatar.purge
        redirect_back(fallback_location: requested_resource)
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
administrate-field-active_storage-0.3.6 example-project/app/controllers/users_controller.rb
administrate-field-active_storage-0.3.5 example-project/app/controllers/users_controller.rb
administrate-field-active_storage-0.3.4 example-project/app/controllers/users_controller.rb
administrate-field-active_storage-0.3.3 example-project/app/controllers/users_controller.rb
administrate-field-active_storage-0.3.2 example-project/app/controllers/users_controller.rb
administrate-field-active_storage-0.3.1 example-project/app/controllers/users_controller.rb