Created
February 15, 2012 19:31
-
-
Save sandro/1838363 to your computer and use it in GitHub Desktop.
Forced asset compiling mixed with some specjour internals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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