Class: ActiveAdmin::FileUpdateChecker

Inherits:
ActiveSupport::FileUpdateChecker
  • Object
show all
Defined in:
lib/active_admin/reloader.rb

Instance Method Summary collapse

Instance Method Details

#updated_atObject

Over-ride the default #updated_at to support the deletion of files



6
7
8
# File 'lib/active_admin/reloader.rb', line 6

def updated_at
  paths.map { |path| File.mtime(path) rescue Time.now }.max
end