Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Lol
- def self.included base
- base.send :include, InstanceMethods
- base.send :extend, ClassMethods
- base.class_eval {
- after_save :update_cells
- }
- end
- module ClassMethods
- end
- module InstanceMethods
- def update_cells
- PostCell.update_states
- end
- end
- end
Add Comment
Please, Sign In to add comment