control 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/control.gemspec +1 -1
  2. data/lib/control/state.rb +1 -1
  3. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'control'
3
- s.version = '0.9.1'
3
+ s.version = '0.9.2'
4
4
  s.date = '2012-08-07'
5
5
  s.summary = "Workflow State Machine"
6
6
  s.description = "State Machine integrated with ActiveRecord"
@@ -43,7 +43,7 @@ module Control
43
43
  def workflow_class
44
44
  unless @workflow_class
45
45
  reflect_on_all_associations.each do |a|
46
- klass = Kernel.qualified_const_get(a.name.to_s.classify)
46
+ klass = a.klass
47
47
  @workflow_class = klass if klass.respond_to?(:is_workflow?) && klass.is_workflow?
48
48
  end
49
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: control
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: