Guest User

Untitled

a guest
Oct 28th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.20 KB | None | 0 0
  1. controller do
  2.   uproc = Proc.new do |params|
  3.     puts params
  4.   end
  5.   def update
  6.     puts "update"
  7.     uproc.call(params)
  8.   end
  9.   def create
  10.     puts "create"
  11.     uproc.call(params)
  12.   end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment