lib/enum_attr.rb in enum_attr-0.0.3 vs lib/enum_attr.rb in enum_attr-0.0.4

- old
+ new

@@ -32,10 +32,10 @@ # TODO: how to judge if there is active_record 3 gem here? scope "#{attr}_#{enum[2]}".to_sym, where("#{attr}=#{enum[1]}") # TODO define_method such as "stauts_origin?" - define_method "#{attr}_#{enum}?" do + define_method "#{attr}_#{enum[2]}?" do attr == enum[1] end end # end: enums.each \ No newline at end of file