From 7b947c3e3f518b79e9b28864b1ba5ef13938fe43 Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Sun, 13 Dec 2015 17:48:08 -0500 Subject: [PATCH] reduce unnecessary check on id --- lib/active_hash/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_hash/base.rb b/lib/active_hash/base.rb index c94fa15..54e86c3 100644 --- a/lib/active_hash/base.rb +++ b/lib/active_hash/base.rb @@ -446,7 +446,7 @@ def []=(key, val) end def id - attributes[:id] ? attributes[:id] : nil + attributes[:id] end def id=(id)