state_machinable 0.0.6 → 1.0.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: cf252a6cffbc2b434d6dbe36ea2daf9e3c66f4cd
4
- data.tar.gz: 973c33bcf17c98cb84559d69588e3b8c7f4363cf
3
+ metadata.gz: a1ebae403b49436628efd36d4360f4bd600debaa
4
+ data.tar.gz: d48797c0e74c559a4b55fc24aa5333d4a95a17b2
5
5
  SHA512:
6
- metadata.gz: 35c995efea8f61b3e8266c86086a996885afc8aa3fa6ac64cc4718d082d58d95a20508fd0d23ec87761abadbe4eb5e079b07f48e84b783cd79019c57e7902647
7
- data.tar.gz: 07c6c0400bb80fd7991abf2cf682e813263123302869c53e3b2ef9e36318d943eacfb2d0e0df24fbd7f50e97e05c6280a8e155e51bd0e175558b954c4f822dda
6
+ metadata.gz: 7ad0b322a62e193d98a8a1238bccc4bf49febdb8dd5e2161620b81c8cab6be9c74b94ef15ec2d06927faaf00611d7af344dc10f820c2a6364a03cd55ad0a674d
7
+ data.tar.gz: c9e0edd4b82bb51f9c930a88de4d6e7941eb6af45eef10358cd7969278db535900caa3b7a0fdcfa1e0db2e735762712c09deaade6088dbf7c6e268b8edb5cd47
@@ -23,7 +23,7 @@ module StateMachinable
23
23
  end
24
24
 
25
25
  after_transition do |obj, transition|
26
- obj.update_column(:current_state, transition.to_state)
26
+ obj.update(:current_state => transition.to_state)
27
27
 
28
28
  state_class = obj.state_machine.class.state_class(transition.to_state)
29
29
  if state_class.present? && state_class.respond_to?(:enter)
@@ -1,3 +1,3 @@
1
1
  module StateMachinable
2
- VERSION = "0.0.6"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machinable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Santiago Herrera
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler