Prefer plain method calls

Akinori MUSHA %!s(int64=9) %!d(string=hace) años
padre
commit
6ea03df8b9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/concerns/sortable_events.rb

+ 2 - 2
app/concerns/sortable_events.rb

@@ -41,11 +41,11 @@ module SortableEvents
41 41
   end
42 42
 
43 43
   def can_order_created_events?
44
-    self.class.__send__(__callee__)
44
+    self.class.can_order_created_events?
45 45
   end
46 46
 
47 47
   def cannot_order_created_events?
48
-    self.class.__send__(__callee__)
48
+    self.class.cannot_order_created_events?
49 49
   end
50 50
 
51 51
   def events_order