Created
November 24, 2012 20:11
-
-
Save xaviershay/4141234 to your computer and use it in GitHub Desktop.
A teaser! Based on a newer version of http://rhnh.net/2012/10/09/dependency-injection-for-rails-controllers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegistrationsController < ApplicationController | |
include Injector::ControllerMethods | |
provided_by Controller::Registration | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment