Permalink
Browse files

alias_method_chain is cleaner

  • Loading branch information...
1 parent 119d3d1 commit c0da56713752795ba4d0212ab8633e877cc041ec @ayn ayn committed Jun 25, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/facebooker_session_patch.rb
@@ -17,8 +17,7 @@ def post_with_async(method, params = {}, use_session = true, &proc)
end
end
- alias_method :post_without_async, :post
- alias_method :post, :post_with_async
+ alias_method_chain :post, :async
def sync(&block)
@queueing = false

0 comments on commit c0da567

Please sign in to comment.