resque-serial 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWIxNDQwYzM3MDYwNDc4MjUyZGNjYmJiYjQxNGY4NDZiZmFmNmY3Mg==
4
+ NDZkMjIyMDExNTFhZTU4NWU2YTQ5NTM4Y2FiNGQ1NjJjOTliNTg2Mw==
5
5
  data.tar.gz: !binary |-
6
- NGNiYzAzOTA0Yjg1YTI0YjQ2YjhmODRmZTIzZGMxNTNiYWViMmE5ZQ==
6
+ NTI4NDJlZDk2YWRmMmEyZjVjYmY1MmNiYjUxYjA4NmEzYjMyNzU4ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OWIxNmQ2ZjQ5NmRkZjUwOThlZjJlZWU0ZTRkZWJjM2MzYjQ4OGEzMWIyZDAx
10
- Mzg0Y2YxMGE4NjNiN2RiMzliZmNlNzVkZjBjNzMyYTU4OThhZTA0MmRmNGQw
11
- ZjIyMDg0NTEwMTQ3MDUwZmQwM2YzZmYxNGQ4MTViNzEzMjQ3YmI=
9
+ Y2I4ZGE3ZWZhZTRiNDQ5NGU5ODAyNmQ4YjRhMjFkZDUyMmRkZGM1ZDgxNTNm
10
+ MzcyZjU0MGQzMDUwMDJmY2IyY2MwNWNkNWNkMzVlZTljM2NmNTdmYzE5M2I1
11
+ MjY5YWU0MTAwMmY0NWUyYmE1Y2Y3YjlhNGUzNTRjOTNkZjY4Mzk=
12
12
  data.tar.gz: !binary |-
13
- M2FkMWY0NzE5OGNmM2NiNmMxNmQzNjUwNmQwNGZlNjdjOGQ4ZTA3YjRiMjEw
14
- Y2VmMWUxN2E2YzUzMTVkMzYwYTVkMjc3Njk0Mzg0OTQwMjM4OTY0M2MyY2Zl
15
- Yzg3ZDZmYWMxODE5MWE2OWExNmFhNTE2NjMzZGI5ZDI1YjA4NjU=
13
+ NjI4MzU5ZDFlNTVmNGE5ZTJkODU3MDg0YWFkMWZhNmE2ODdhYzFlMWY4OTI4
14
+ ZWI0MThiMWQwNmNhMzczMWI4YzUzNzA1ZGNlNTUwMDY0OWUyMzlhZGVlZmUw
15
+ MjBmNWQwYmQ1Y2Q3OGQ0NDU1NWM3NDVlN2U0NGU0N2I4ZDNiMTk=
@@ -39,7 +39,10 @@ module ResqueSerial
39
39
 
40
40
  def perform(queue)
41
41
  options = dequeue_payload queue
42
- model = options[:class].constantize.unscoped.find(options[:id])
42
+
43
+ model = options[:class].constantize.unscoped.where(id: options[:id]).first
44
+ return unless model
45
+
43
46
  model.scope = options.delete(:scope)
44
47
  model.send options[:method], *options[:args]
45
48
  end
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Serial
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-serial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Kazarin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-22 00:00:00.000000000 Z
11
+ date: 2013-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport