diaspora/spec/support/no_id_on_object.rb
danielgrippi 02021584a7 EvilQuery for Participation, refactor comment creation
you can now create a comment with User#comment!(post, text)
2012-02-01 15:09:31 -08:00

9 lines
199 B
Ruby

#class Object
# def id
# if self.class.ancestors.include?(ActiveRecord::Base)
# super
# else
# raise "You are calling id on a non-ActiveRecord object. STOP IT."
# end
# end
#end