Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## awesomeness
- [:get, :post, :put, :delete, :render, :request].each do |action|
- eval %Q{
- def before_#{action}
- yield
- do_#{action}
- end
- alias during_#{action} before_#{action}
- def after_#{action}
- do_#{action}
- yield
- end
- }
- end
Add Comment
Please, Sign In to add comment