aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/state_machine/machine.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-19 11:07:19 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-19 11:07:19 -0800
commitbedea330432444ffcc003b54ae12c5ecc4e4b3eb (patch)
treef7b6a96a2236eb0a41782f32e3e0e097b0ca32ae /activemodel/lib/active_model/state_machine/machine.rb
parentbaa8ee5eb1056d07c6623c37a57818317cd5bcc4 (diff)
downloadrails-bedea330432444ffcc003b54ae12c5ecc4e4b3eb.tar.gz
rails-bedea330432444ffcc003b54ae12c5ecc4e4b3eb.tar.bz2
rails-bedea330432444ffcc003b54ae12c5ecc4e4b3eb.zip
Eliminate method redefinition warning
Diffstat (limited to 'activemodel/lib/active_model/state_machine/machine.rb')
-rw-r--r--activemodel/lib/active_model/state_machine/machine.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/state_machine/machine.rb b/activemodel/lib/active_model/state_machine/machine.rb
index 58c2f1b200..a5ede021b1 100644
--- a/activemodel/lib/active_model/state_machine/machine.rb
+++ b/activemodel/lib/active_model/state_machine/machine.rb
@@ -4,7 +4,8 @@ require 'active_model/state_machine/event'
module ActiveModel
module StateMachine
class Machine
- attr_accessor :initial_state, :states, :events, :state_index
+ attr_writer :initial_state
+ attr_accessor :states, :events, :state_index
attr_reader :klass, :name
def initialize(klass, name, options = {}, &block)