b635c940ae
- network filtering - validity - last used remove creation logic
11 lines
218 B
Ruby
11 lines
218 B
Ruby
class Profile::APITokenCardComponent < ApplicationComponent
|
|
private
|
|
|
|
def render?
|
|
current_administrateur.present?
|
|
end
|
|
|
|
def api_tokens
|
|
current_administrateur.api_tokens.order(created_at: :desc)
|
|
end
|
|
end
|