Created
September 21, 2015 18:09
-
-
Save mib32/cac21dc9ef7678d98af3 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
paths = Dir[Rails.root.join("config/routes/**/*.rb")] | |
updater = ActiveSupport::FileUpdateChecker.new(paths) { Rails.application.routes_reloader.reload!; Rails.logger.debug('shita') } | |
Rails.application.configure do | |
config.to_prepare do | |
puts 'updated status: ' + updater.updated?.to_s | |
Rails.logger.debug('shita') | |
updater.execute_if_updated | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment