Sha256: 4ef4355a1922943600dd29fd57c286fe721f6a59b4eea9f0da3df545462698f3

Contents?: true

Size: 284 Bytes

Versions: 24

Compression:

Stored size: 284 Bytes

Contents

module Rearview
  module Ext
    module StateMachine
      extend ActiveSupport::Concern
      included do
        attr_accessor :event_data
      end

      def fire_event(name,event_data={})
        self.event_data = event_data
        fire_events(name)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rearview-1.2.3-jruby lib/rearview/ext/state_machine.rb
rearview-1.2.2.rc.2-jruby lib/rearview/ext/state_machine.rb
rearview-1.2.2.rc.1-jruby lib/rearview/ext/state_machine.rb
rearview-1.2.1-jruby lib/rearview/ext/state_machine.rb
rearview-1.2.0-jruby lib/rearview/ext/state_machine.rb
rearview-1.1.2-jruby lib/rearview/ext/state_machine.rb
rearview-1.1.1-jruby lib/rearview/ext/state_machine.rb
rearview-1.1.0-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.3.rc.4-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.3.rc.3-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.3.rc.2-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.3.rc.1-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.2-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.2.rc.4-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.2.rc.3-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.2.rc.2-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.2.rc.1-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.1-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.0-jruby lib/rearview/ext/state_machine.rb
rearview-1.0.0.rc5-jruby lib/rearview/ext/state_machine.rb