public Method

Dependencies.depend_on(file_name, swallow_load_errors = false)

There's no documentation for this item.

Source Code

# File active_support/dependencies.rb, line 58
def depend_on(file_name, swallow_load_errors = false)
  path = search_for_file(file_name)
  require_or_load(path || file_name)
rescue LoadError
  raise unless swallow_load_errors
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.