It stops rails from initializing models or trying to connect to the database when running `rake assets:precompile`. The asset erbs then can't call any model methods or interact with the database.

Notes on it here: http://guides.rubyonrails.org/asset_pipeline.html#local-precompilation