Skip to content

Commit

Permalink
Use :Events for anon module containing event decls
Browse files Browse the repository at this point in the history
  • Loading branch information
karmajunkie committed Apr 10, 2014
1 parent ffed773 commit 6409c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/replay/events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def events(mod = nil, &block)
extend Replay::EventDeclarations
module_eval &block
end
self.const_set(:"#{self.to_s.split("::")[-1]}Events", mod)
self.const_set(:Events, mod)
end
include mod
end
Expand Down

0 comments on commit 6409c54

Please sign in to comment.