Created
September 8, 2016 03:55
-
-
Save finbarr/7325e34abf25e053d44e4f83534749ff to your computer and use it in GitHub Desktop.
Toot
This file contains 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 Toot < ActiveRecord::Base | |
after_commit :foo | |
validate :never | |
def never | |
self.errors[:base] << 'wtfff' | |
false | |
end | |
def foo | |
puts "yoyoyo" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment