workflow_on_mongoid 0.8.0.2 → 0.8.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,5 +2,5 @@
2
2
  module WorkflowOnMongoid #:nodoc
3
3
  # major version number matches the latest supported version of the Workflow gem
4
4
  # minor version number for tracking changes to workflow_on_mongoid itself
5
- VERSION = "0.8.0.2"
5
+ VERSION = "0.8.0.3"
6
6
  end
@@ -12,7 +12,7 @@ module Workflow
12
12
 
13
13
  private
14
14
  def write_initial_state
15
- update_attribute(self.class.workflow_column, current_state.to_s) if load_workflow_state.blank?
15
+ send("#{self.class.workflow_column}=", current_state.to_s) if load_workflow_state.blank?
16
16
  end
17
17
  end
18
18
 
@@ -32,4 +32,4 @@ module Workflow
32
32
  end
33
33
  end
34
34
  end
35
- end
35
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow_on_mongoid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
9
  - 0
10
- - 2
11
- version: 0.8.0.2
10
+ - 3
11
+ version: 0.8.0.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Mani Tadayon
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-06-09 00:00:00 -07:00
19
+ date: 2011-06-30 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  requirements: []
203
203
 
204
204
  rubyforge_project:
205
- rubygems_version: 1.6.2
205
+ rubygems_version: 1.3.9.2
206
206
  signing_key:
207
207
  specification_version: 3
208
208
  summary: Add Mongoid support to the Workflow gem.