towsta 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/towsta/version.rb +1 -1
- data/lib/towsta.rb +5 -2
- metadata +2 -2
data/lib/towsta/version.rb
CHANGED
data/lib/towsta.rb
CHANGED
@@ -23,8 +23,11 @@ def sync_with_towsta params=nil
|
|
23
23
|
params ||= {} if $towsta_sync
|
24
24
|
$towsta_sync ||= {}
|
25
25
|
params = $towsta_sync.merge(params) if params
|
26
|
-
|
27
|
-
|
26
|
+
if $towsta_cache
|
27
|
+
Towsta::Memory.recover params
|
28
|
+
else
|
29
|
+
Towsta::Synchronizer.new :secret => $towsta_secret, :path => $towsta_path, :params => params
|
30
|
+
end
|
28
31
|
begin
|
29
32
|
Dir["./models/*.rb"].each {|file| load file }
|
30
33
|
rescue; end;
|