Module: SwissKnife::Support::RemoteFile
- Included in:
- DispatcherJs, I18nJs, Jquery, JqueryUjs
- Defined in:
- lib/swiss_knife/support/remote_file.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
4 5 6 7 8 |
# File 'lib/swiss_knife/support/remote_file.rb', line 4 def update File.open(Rails.root.join("public/#{file}"), "w+") do |f| f << open(url).read end end |