private Method

Base.template_changed_since?(file_name, compile_time)

Method to handle checking a whether a template has changed since last compile; isolated so that templates not stored on the file system can hook and extend appropriately.

Source Code

# File action_view/base.rb, line 553
def template_changed_since?(file_name, compile_time)
  lstat = File.lstat(file_name)
  compile_time < lstat.mtime || 
    (lstat.symlink? && compile_time < File.stat(file_name).mtime)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.