Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module ContentFu
- module ContentItemAssocExt
- def append_with_hello(*records)
- RAILS_DEFAULT_LOGGER.debug("***** Hello ******")
- append_without_hello(records)
- end
- def self.extended(base)
- base.alias_method("append_without_hello", :<<)
- base.alias_method("<<", append_with_hello)
- end
- end
- end
Add Comment
Please, Sign In to add comment