Created
November 24, 2012 12:54
-
-
Save mhenrixon/4139552 to your computer and use it in GitHub Desktop.
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
# Scenario för att välja produkt | |
# Resurser som behövs är: | |
# @card_products | |
# Scenario för produkten 'Period buss' | |
# Resurser som behövs är: | |
# @product | |
# @routes | |
# @route_zones | |
# Vi anropar CardOrderController#new i varje nytt steg. | |
class CardOrderController | |
def new | |
// Logik | |
end | |
end | |
# Eftersom vi egentligen bara kommer anropa CardOrderStep.new(session[:order_steps]) i #new, måste väl CardOrderStep se till att ladda rätt resurser beroende på scenario? Exempelvis se till att @routes, @product och dylikt finns? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment