frontend/app/models/publickey.rb in meroku-2.0.3 vs frontend/app/models/publickey.rb in meroku-2.0.4

- old
+ new

@@ -1,3 +1,14 @@ class Publickey < ApplicationRecord belongs_to :user + + # Updates /home/git/.ssh/authorized_keys + # called when something added/?/etc to publickeys table + def self.refresh + Rails.logger.debug "DB8 publickey.rb:def self.refresh called" + Rails.logger.debug "wipwip" + end + + def after_save + Publickey.refresh + end end