Class | Sprockets::Environment |
In: |
lib/sprockets/environment.rb
|
Parent: | Base |
`Environment` should initialized with your application‘s root directory. This should be the same as your Rails or Rack root.
env = Environment.new(Rails.root)
Returns a cached version of the environment.
All its file system calls are cached which makes `index` much faster. This behavior is ideal in production since the file system only changes between deploys.