OSDN Git Service

rails upgrade to 4
[pettanr/pettanr.git] / app / controllers / system_controller.rb
index be48d47..f5f8d95 100644 (file)
@@ -1,5 +1,5 @@
 class SystemController < ApplicationController
-  before_filter :authenticate_admin!, :except => [:start]
+  before_action :authenticate_admin!, :except => [:start]
   
   #layout :system
   
@@ -64,7 +64,7 @@ class SystemController < ApplicationController
   end
   
   def waiting_list
-    @waits = Admin.find(:all, :conditions => ['approve = 0'])
+    @waits = Admin.where(approve: 0)
   end
   
   def accept_admin