Guest User

Untitled

a guest
May 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Parameters: {"commit"=>"Purchase", "action"=>"create", "order"=>{"store"=>{"62-Junction"=>{"credits"=>"5"}, "126-90-Minutes"=>{"credits"=>"6"}}}, "controller"=>"orders"}
  2.  
  3.  
  4. def self.new_orders(params)
  5. params.map{|p| Order.new}
  6. end
  7.  
  8. def self.new_orders(params)
  9. params.each do |p|
  10. p.credits
  11. end
  12. end
Add Comment
Please, Sign In to add comment