Skip to content

Commit

Permalink
Swapping order a bit so find works the scam way instead of like enume…
Browse files Browse the repository at this point in the history
…rable.
  • Loading branch information
jnunemaker committed Dec 28, 2010
1 parent 25e5b99 commit 7189a89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/scam.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,8 +1,12 @@
module Scam module Scam
def self.included(base) def self.included(base)
base.class_eval do
class << self
include Enumerable
end
attr_accessor :id
end
base.extend(ClassMethods) base.extend(ClassMethods)
base.class.send(:include, Enumerable)
base.class_eval { attr_accessor(:id) }
end end


module ClassMethods module ClassMethods
Expand Down

0 comments on commit 7189a89

Please sign in to comment.