class FileUpdateChecker
Ruby on Rails 3.0.20
Since v3.0.20This class is responsible to track files and invoke the given block whenever one of these files are changed. For example, this class is used by Rails to reload the I18n framework whenever they are changed upon a new request.
i18n_reloader = ActiveSupport::FileUpdateChecker.new(paths) do I18n.reload! end ActionDispatch::Callbacks.to_prepare do i18n_reloader.execute_if_updated end
Inherits from
Attributes
Methods (defined here)
- # execute_if_updated
- # updated_at
- self. new
Methods (inherited)
From Object (26)
- # acts_like?
- # app
- # blank?
- # controller
- # create
- # create_fixtures
- # destroy
- # duplicable?
- # edit
- # helper
- # html_safe?
- # index
- # instance_variable_names
- # new
- # new_session
- # presence
- # present?
- # reload!
- # returning
- # show
- # to_param
- # to_query
- # try
- # unescape
- # update
- # with_options