Created
August 23, 2016 18:46
-
-
Save blake41/b0e9395b95ee77c7e5a4c4c23d9bfd0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
after_save :some_method, :on => :update | |
after_save :always | |
def some_method | |
puts "i only fire on update" | |
binding.pry | |
end | |
def always | |
puts "i always fire" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment