title: ruby state_machine events getting triggered without call
body: <p>New to ruby here, trying to make a state machine using ruby gem <code>state_machine</code>. My code is as follows:</p>
  
  <pre><code>require 'rubygems'
  require 'state_machine'
  require_relative 'decisao'
  require_relative 'Update'
  require_relative 'Register'
  
  class Estado
    state_machine :state, initial: :base do
      event :decisao do
        transition :base =&gt; :decisao
        Decisao.AnalisarPlanilha()
      end
  
      event :update do
        transition :base =&gt; :update
        Update.AtualizarPlanilha()
      end
  
      event :cadastro do
        transition :base =&gt; :cadastro
        Register.ExecuteRegister()
      end
  
      event :visualizar do
        transition :base =&gt; :visualizar
        Report.OnVisualize()
      end
  
      event :retornar do
        transition any =&gt; :base
      end
    end
  end
  </code></pre>
  
  <p>Whenever I call for an instance of the class <code>Estado</code> to be created, it begins to go through all the events in order of appearance, regardless of me calling for any transitions. My intention here is to have a base state, that changes depending on which function of the program is needed, then an event can return us to that base state.</p>