openhood-simple_state_machine 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/simple_state_machine.rb +1 -1
  2. metadata +2 -2
@@ -51,7 +51,7 @@ module SimpleStateMachine
51
51
  def set_initial_states
52
52
  states.each {|column, states|
53
53
  self[column] = states.first.to_s
54
- } if(@new_record)
54
+ } if new_record?
55
55
  end
56
56
  end
57
57
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joseph Halter