Guest User

Untitled

a guest
May 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. module Lol
  2. def self.included base
  3. base.send :include, InstanceMethods
  4. base.send :extend, ClassMethods
  5.  
  6. base.class_eval {
  7. after_save :update_cells
  8. }
  9. end
  10.  
  11. module ClassMethods
  12. end
  13.  
  14. module InstanceMethods
  15. def update_cells
  16. PostCell.update_states
  17. end
  18. end
  19. end
Add Comment
Please, Sign In to add comment