Skip to content

Instantly share code, notes, and snippets.

@sandro
Created February 15, 2012 19:31
Show Gist options
  • Save sandro/1838363 to your computer and use it in GitHub Desktop.
Save sandro/1838363 to your computer and use it in GitHub Desktop.
Forced asset compiling mixed with some specjour internals
def default_after_load
lambda do
if rails_with_ar?
if Rails.application.assets
%w(application.js application.css).each do |primary_asset|
Rails.application.assets.find_asset(primary_asset)
end
end
ActiveRecord::Base.remove_connection
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment