public Method

Dependencies.mark_for_unload(const_desc)

Mark the provided constant name for unloading. This constant will be unloaded on each request, not just the next one.

Source Code

# File active_support/dependencies.rb, line 295
def mark_for_unload(const_desc)
  name = to_constant_name const_desc
  if explicitly_unloadable_constants.include? name
    return false
  else
    explicitly_unloadable_constants << name
    return true
  end
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.