slender_data 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f507b704a233dcf4a01acb86b22cd5400e250e9c
4
- data.tar.gz: ce8f7bd91529b3f8b24c7f8d490f4d1d52c0d7aa
3
+ metadata.gz: 7cfa32663017a9b7ca26724ad84858d159ae78f1
4
+ data.tar.gz: 7f96b6f3ce8b3a22b7691fe0ac241825e9b92dc7
5
5
  SHA512:
6
- metadata.gz: b6a9021c2c2e152e0c44a5470b908df3babbff4ea08d08c7c5e6cfe848867a6331de41ba384f8577b79e208520340d43cff974bc4ff7e098eddf8c66e2a03099
7
- data.tar.gz: 6a6d8df07e91f0dac3c8a072ac6fc5bf78de8649330fd58b6df95301354ff0a4d9c8b0efc8676c0589fefaef2f057935d5a4bf8d25a8533d2a49eb1da2f42a39
6
+ metadata.gz: af231ee6588b729b8a870b9fde603ab2216b475017ee6ec27b050a0d5812174e558be056eb1076409a771aed13bc1e106e271939c0ded57f45cdf267061c29fb
7
+ data.tar.gz: e0ac653466ac1637ab7e5d195199fa4406172ecdb8500ccf3dab55dc9c5a14ff4402fda92161d5f2db7b380063f6dee1df63e244ed83b987027aa006d806c7d8
@@ -135,11 +135,12 @@ class slender_data.PersistenceManager
135
135
 
136
136
  # Loads all objects from the server.
137
137
  # Provides the given params as parameters to the GET request.
138
- fetch_all: (ids, success_callback, error_callback) ->
138
+ fetch_all: (data, success_callback, error_callback) ->
139
+ data.ids = data.ids.join(' ') if data.ids
139
140
  jQuery.ajax
140
141
  url: @collection_url()
141
142
  cache: no
142
- data: ids
143
+ data: data
143
144
  success: (data) =>
144
145
  @server_data.add_all data
145
146
  success_callback(data) if success_callback
@@ -1,3 +1,3 @@
1
1
  module SlenderData
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slender_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Goslar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-14 00:00:00.000000000 Z
11
+ date: 2013-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>'
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.0
19
+ version: 3.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>'
25
25
  - !ruby/object:Gem::Version
26
- version: 3.1.0
26
+ version: 3.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coffee-rails
29
29
  requirement: !ruby/object:Gem::Requirement