RailsCasts Pro episodes are now free!

Learn more or hide this

Bill Eisenhauer's Profile

GitHub User: billeisenhauer

Site: blog.billeisenhauer.com

Comments by Bill Eisenhauer

Avatar

Thanks for the screencast, Ryan.

Holding this logic in an initializer seems odd. I'm going to assume you could place that block almost anywhere else.

I have seen a presentation on Domain Driven Design with Rails by Pat Maddox where he plays around with the notion of generating and consuming events as a means to decouple concerns. Makes me wonder if you might do it with these. I know you advise against this, but am wondering how that would feel.

Of course, with the above, you have to consider how it would be tested.