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: f94e2ad3b068a5babaead4901054ee590c3ea549
4
- data.tar.gz: c1afa45138b300257f36fd6481f49840b3c5c89c
3
+ metadata.gz: d97143db9cfd89fb6870044d765e15263bcd62d8
4
+ data.tar.gz: 6a167d703c2caeafccdd302a405b7149e5b40bed
5
5
  SHA512:
6
- metadata.gz: 4a9107c05e746545c530857b988e4e8b5ed1b0c355e42f3fee6da205cdd088418934141e3007956b09d82e9a1d1d1ffd7751138b4abbfb626b250ed43d15e80c
7
- data.tar.gz: edd4fc4f6f63389b7ec27c8f728f6cb55803f8f2457dde85250afdd97350f2f908c3d1a8e1b065e213c89f09971c276536e44a3e259950719b50b4173ccb361a
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.find(id) if selected_album.nil?
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
@@ -1,3 +1,3 @@
1
1
  module SubappModel
2
- VERSION = "0.9.9"
2
+ VERSION = "0.9.9.1"
3
3
  end
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-07 00:00:00.000000000 Z
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler