lib/ncmb/file.rb in ncmb-ruby-client-0.1.6 vs lib/ncmb/file.rb in ncmb-ruby-client-0.1.7
- old
+ new
@@ -12,10 +12,10 @@
end
@content = nil
end
def save
- @fields[:file] = open(self.file)
+ @fields[:file] = ::OpenURI.open_uri(self.file)
super
end
alias :update :save
def get
\ No newline at end of file