public
Rubygem
Description: Adds support for creating state machines for attributes on any Ruby class
Homepage: http://www.pluginaweek.org
Clone URL: git://github.com/pluginaweek/state_machine.git
Change how the base module is included to prevent namespacing conflicts
obrie (author)
Sat Oct 04 14:51:45 -0700 2008
commit  a3cbd3308f37deb083d277c1b253837e93e3407a
tree    53f43160f2d4bfb58ac7643ef48de01fc3c5f795
parent  2baae6566351461b8140895cd8ae8db450cb182b
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 == master
0
 
0
+* Change how the base module is included to prevent namespacing conflicts
0
+
0
 == 0.3.0 / 2008-09-07
0
 
0
 * No longer allow additional arguments to be passed into event actions
...
5
6
7
8
9
10
11
12
13
14
15
16
...
125
126
127
128
 
129
...
5
6
7
 
 
 
 
 
 
8
9
10
...
119
120
121
 
122
123
0
@@ -5,12 +5,6 @@ module PluginAWeek #:nodoc:
0
   # transitions.  This helper adds support for defining this type of
0
   # functionality within ActiveRecord models.
0
   module StateMachine
0
-    def self.included(base) #:nodoc:
0
-      base.class_eval do
0
-        extend PluginAWeek::StateMachine::MacroMethods
0
-      end
0
-    end
0
-    
0
     module MacroMethods
0
       # Creates a state machine for the given attribute.  The default attribute
0
       # is "state".
0
@@ -125,5 +119,5 @@ module PluginAWeek #:nodoc:
0
 end
0
 
0
 ActiveRecord::Base.class_eval do
0
-  include PluginAWeek::StateMachine
0
+  extend PluginAWeek::StateMachine::MacroMethods
0
 end

Comments