Skip to content

Instantly share code, notes, and snippets.

@finbarr
Created September 8, 2016 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finbarr/7325e34abf25e053d44e4f83534749ff to your computer and use it in GitHub Desktop.
Save finbarr/7325e34abf25e053d44e4f83534749ff to your computer and use it in GitHub Desktop.
Toot
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