vault-rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Vault
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -207,7 +207,7 @@ class Vault
207
207
  $.ajax
208
208
  type: 'DELETE'
209
209
  url: @urls.delete
210
- data: @strip object
210
+ data: JSON.stringify @strip object
211
211
  fixture: (settings) ->
212
212
  return true
213
213
  success: (data) =>
@@ -228,7 +228,7 @@ class Vault
228
228
  $.ajax
229
229
  type: 'POST'
230
230
  url: @urls.create
231
- data: @strip object
231
+ data: JSON.stringify @strip object
232
232
  fixture: (settings) =>
233
233
  settings.data.id = @date.getTime()
234
234
 
@@ -249,7 +249,7 @@ class Vault
249
249
  $.ajax
250
250
  type: 'POST'
251
251
  url: @urls.update
252
- data: @strip object
252
+ data: JSON.stringify @strip object
253
253
  fixture: (settings) ->
254
254
  return true
255
255
  success: (data) =>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vault-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: