fast_timestamp 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fast_timestamp.gemspec +1 -1
- data/lib/fast_timestamp.rb +3 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/fast_timestamp.gemspec
CHANGED
data/lib/fast_timestamp.rb
CHANGED
@@ -25,7 +25,9 @@ module FastTimestamp
|
|
25
25
|
|
26
26
|
# returns a Time object
|
27
27
|
def timestamp_for(key)
|
28
|
-
::Timestamp.find_by_timestampable_type_and_timestampable_id_and_key(self.class.base_class.name, id, key.to_s)
|
28
|
+
if t = ::Timestamp.find_by_timestampable_type_and_timestampable_id_and_key(self.class.base_class.name, id, key.to_s)
|
29
|
+
t.read_attribute :stamped_at
|
30
|
+
end
|
29
31
|
end
|
30
32
|
|
31
33
|
def fast_destroy_timestamps
|