Created
July 11, 2012 06:00
-
-
Save gmoeck/3088263 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 SomeController < ApplicationController | |
... | |
def update | |
ui = SomeViewAdapter.new | |
domain = SomeDomain.new(ui) | |
translator = SomeRailsAdapter.new(domain) | |
translator.some_action(params) | |
#some processing based upon ui values in order to know what view to render, etc | |
end | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment