motion-prime/models/store.rb in motion-prime-0.5.2 vs motion-prime/models/store.rb in motion-prime-0.5.3

- old
+ new

@@ -9,10 +9,10 @@ when :temporary, :temp store = NSFNanoStore.createAndOpenStoreWithType(NSFTemporaryStoreType, path: nil, error: error_ptr) when :persistent, :file path ||= begin documents_path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0] - documents_path + "/nano.db" + documents_path + "/nano_#{Prime.env.to_s}.db" end store = NSFNanoStore.createAndOpenStoreWithType(NSFPersistentStoreType, path: path, error: error_ptr) else raise StoreError.new("unexpected store type (#{type}), must be one of: :memory, :temporary or :persistent") end \ No newline at end of file