Class: ActiveAdmin::FileUpdateChecker
- Inherits:
-
ActiveSupport::FileUpdateChecker
- Object
- ActiveSupport::FileUpdateChecker
- ActiveAdmin::FileUpdateChecker
- Defined in:
- lib/active_admin/reloader.rb
Instance Method Summary collapse
-
#updated_at ⇒ Object
Over-ride the default #updated_at to support the deletion of files.
Instance Method Details
#updated_at ⇒ Object
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 |