Permalink
Browse files

Swapping order a bit so find works the scam way instead of like enume…

…rable.
  • Loading branch information...
1 parent 25e5b99 commit 7189a89b2fc9b5471974f52805c70964450907b3 @jnunemaker committed Dec 28, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/scam.rb
View
8 lib/scam.rb
@@ -1,8 +1,12 @@
module Scam
def self.included(base)
+ base.class_eval do
+ class << self
+ include Enumerable
+ end
+ attr_accessor :id
+ end
base.extend(ClassMethods)
- base.class.send(:include, Enumerable)
- base.class_eval { attr_accessor(:id) }
end
module ClassMethods

0 comments on commit 7189a89

Please sign in to comment.