Skip to content

Commit

Permalink
#54
Browse files Browse the repository at this point in the history
  • Loading branch information
noshutdown-ru-user committed Dec 15, 2019
1 parent 08bc9a0 commit 8e53cbd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/controllers/keys_controller.rb
Expand Up @@ -5,6 +5,7 @@ class KeysController < ApplicationController
before_action :authorize
before_action :find_key, only: [ :show, :edit, :update, :destroy, :copy ]
before_action :find_keys, only: [ :context_menu ]
accept_api_auth :index, :show

helper :sort
include SortHelper
Expand Down Expand Up @@ -64,6 +65,12 @@ def index
end

@keys.map(&:decrypt!)

respond_to do |format|
format.html
format.pdf
format.json { render json: @keys }
end
end

def new
Expand Down

0 comments on commit 8e53cbd

Please sign in to comment.