]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Fix rubocop warnings
[rails.git] / app / models / user.rb
index eae917af8dc26884a1d5e4a998827ea2b9c2ed7b..1a0e3415eacfd416509fcea0ff01b1708029d2af 100644 (file)
@@ -242,7 +242,7 @@ class User < ActiveRecord::Base
   private
 
   def set_defaults
-    self.creation_time = Time.now.getutc unless self.attribute_present?(:creation_time)
+    self.creation_time = Time.now.getutc unless attribute_present?(:creation_time)
   end
 
   def encrypt_password