state.rb

Path: lib/action_flow/state.rb
Last Update: Wed May 16 22:50:21 -0400 2007

Methods

included   state   state=  

Public Class methods

Adds ActionView helper methods

[Source]

# File lib/action_flow/state.rb, line 65
    def self.included(base)
      base.send :helper_method, :state
    end

Public Instance methods

Returns the state data hash

[Source]

# File lib/action_flow/state.rb, line 38
    def state
      
      return session[ flow_session_name ].fetch( state_session_name )
      
    end

Changes the state hash for another one

[Source]

# File lib/action_flow/state.rb, line 45
    def state=(hash)
      session[ flow_session_name ].store( state_session_name, hash )
      return state
    end

[Validate]