Guest User

Untitled

a guest
Apr 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. module ContentFu
  2. module ContentItemAssocExt
  3.  
  4. def append_with_hello(*records)
  5. RAILS_DEFAULT_LOGGER.debug("***** Hello ******")
  6. append_without_hello(records)
  7. end
  8.  
  9. def self.extended(base)
  10. base.alias_method("append_without_hello", :<<)
  11. base.alias_method("<<", append_with_hello)
  12. end
  13.  
  14. end
  15. end
Add Comment
Please, Sign In to add comment