Permalink
Browse files

Fix check for presence of ActiveRecord

  • Loading branch information...
1 parent 0c76c9c commit 0aeab708efc22897c5b20cc84037b96cb247f708 @bowsersenior committed Oct 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/12_hour_time.rb
View
@@ -1,4 +1,4 @@
-if const_defined?(:ActiveRecord)
+if Object.const_defined?(:ActiveRecord)
class ActiveRecord::Base
def instantiate_time_object_with_ampm(name, values)
if values.last < 0

0 comments on commit 0aeab70

Please sign in to comment.