Created
March 18, 2010 08:21
-
-
Save Sutto/336150 to your computer and use it in GitHub Desktop.
This file contains 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
if defined?(Rails) | |
def rr | |
if Rails::VERSION::STRING == "3.0.0.beta" | |
puts "Reloading..." | |
ActionDispatch::Callbacks.new(lambda {}, false).call({}) | |
else | |
reload! | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment