Skip to content

Instantly share code, notes, and snippets.

View tmschndr's full-sized avatar

Tim Schneider tmschndr

View GitHub Profile
@tmschndr
tmschndr / check_location.rb
Created September 11, 2012 10:30
what's the most readable version? Or do know a even better solution? :)
class Tweet < ActiveRecord::Base
before_save :check_location
def check_location
show_location = location?
end
end