Changeset 1151
- Timestamp:
- 01/02/08 23:34:54 (11 months ago)
- Files:
-
- trunk/lib/merb/server.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/server.rb
r1148 r1151 364 364 # First we collect all files in the project (this will also grab newly added files) 365 365 project_files = MERB_PATHS.map { |path| Dir[@@merb_opts[:merb_root] + path] }.flatten.uniq 366 erb_partials = template_paths("_*.erb").map { |path| Dir[path] }.flatten.uniq367 project_mtime = max_mtime(project_files + erb_partials) # Latest changed time of all project files366 partials = template_paths("_*.*").map { |path| Dir[path] }.flatten.uniq 367 project_mtime = max_mtime(project_files + partials) # Latest changed time of all project files 368 368 369 369 return if @mtime.nil? || @mtime >= project_mtime # Only continue if a file has changed
