cloudstrg 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cloudstrg/cloudstrg.rb +1 -1
- data/lib/cloudstrg/cloudstrg.rb~ +1 -1
- data/lib/cloudstrg/version.rb +1 -1
- metadata +1 -1
data/lib/cloudstrg/cloudstrg.rb
CHANGED
@@ -127,7 +127,7 @@ module CloudStrg
|
|
127
127
|
file = file[0]
|
128
128
|
file.filehash = filecontent.hash.to_s
|
129
129
|
else
|
130
|
-
file = user.cloudstrgconfig.cloudstrgplugin.
|
130
|
+
file = user.cloudstrgconfig.cloudstrgplugin.remotes.build(:user_id => user, :filename => filename, :filehash => filecontent.hash.to_s, :file_remote_id => file_remote_id)
|
131
131
|
end
|
132
132
|
file.save
|
133
133
|
return file
|
data/lib/cloudstrg/cloudstrg.rb~
CHANGED
@@ -127,7 +127,7 @@ module CloudStrg
|
|
127
127
|
file = file[0]
|
128
128
|
file.filehash = filecontent.hash.to_s
|
129
129
|
else
|
130
|
-
file = user.cloudstrgconfig.cloudstrgplugin.
|
130
|
+
file = user.cloudstrgconfig.cloudstrgplugin.remotes.build(:user_id => user, :filename => filename, :filehash => filecontent.hash.to_s, :file_remote_id => file_remote_id)
|
131
131
|
end
|
132
132
|
file.save
|
133
133
|
return file
|
data/lib/cloudstrg/version.rb
CHANGED