0
0
Fork 0

Initial commit

This commit is contained in:
Eugen Rochko 2016-02-20 22:53:20 +01:00
commit 9c4856bdb1
73 changed files with 1393 additions and 0 deletions

View file

@ -0,0 +1,13 @@
if Rails.env.development?
ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Twitter::API'
api_files = Dir[Rails.root.join('app', 'api', '**', '*.rb')]
api_reloader = ActiveSupport::FileUpdateChecker.new(api_files) do
Rails.application.reload_routes!
end
ActionDispatch::Callbacks.to_prepare do
api_reloader.execute_if_updated
end
end