Commit 12f696c2 authored by Marin Jankovski's avatar Marin Jankovski

Remove unecessary return.

parent 8a365f5d
......@@ -326,9 +326,8 @@ class NotificationService
def previous_record(object, attribute)
if object && attribute
if object.previous_changes.include?(attribute)
return object.previous_changes[attribute].first
object.previous_changes[attribute].first
end
end
nil
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment