subapp_model 0.9.9 → 0.9.9.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d97143db9cfd89fb6870044d765e15263bcd62d8
|
4
|
+
data.tar.gz: 6a167d703c2caeafccdd302a405b7149e5b40bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f471c9240423daef58432c55451e673f7a63967b499f9841a6f962a24c0444a4cb7a9f8def4f6e2955f934a9bb64dd2d47f0183a0f05ea68eb47354f01cded4b
|
7
|
+
data.tar.gz: 9117731dc0f417b38b749e35a61c517fe494fea537cd6b31de9bb2f087b6f712b6431a66af20dc28c607b6608af08c7cf398ceb144c0e23a8cc4677eea3f73c6
|
@@ -6,7 +6,7 @@ class SelectedAlbums < ActiveRecord::Base
|
|
6
6
|
|
7
7
|
def self.get(selected_album_cache, id)
|
8
8
|
selected_album = selected_album_cache.get(id)
|
9
|
-
selected_album = self.
|
9
|
+
selected_album = self.where(id: id).first if selected_album.nil?
|
10
10
|
selected_album_cache.put(selected_album) unless selected_album.nil?
|
11
11
|
selected_album
|
12
12
|
end
|
@@ -9,6 +9,7 @@ class SelectedAlbumsRelation < ActiveRecord::Base
|
|
9
9
|
album_ids = nil
|
10
10
|
if page == 1
|
11
11
|
album_ids = list_ids_cache.get(id, page, limit)
|
12
|
+
album_ids = album_ids.collect {|id| id.to_i unless id.nil? || id.empty?}
|
12
13
|
end
|
13
14
|
|
14
15
|
if album_ids.nil? || album_ids.length == 0
|
data/lib/subapp_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subapp_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.9
|
4
|
+
version: 0.9.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gavin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|