OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fetch fail
[pettanr/pettanr.git]
/
app
/
controllers
/
providers_controller.rb
diff --git
a/app/controllers/providers_controller.rb
b/app/controllers/providers_controller.rb
index
d229d28
..
526a465
100644
(file)
--- a/
app/controllers/providers_controller.rb
+++ b/
app/controllers/providers_controller.rb
@@
-1,6
+1,5
@@
class ProvidersController < ApplicationController
class ProvidersController < ApplicationController
- layout 'test' if MagicNumber['test_layout']
- before_filter :authenticate_admin!, :only => [:index, :show]
+ before_action :authenticate_admin!, :only => [:index, :show, :destroy]
def index
@page = Provider.page params[:page]
def index
@page = Provider.page params[:page]
@@
-27,4
+26,7
@@
class ProvidersController < ApplicationController
end
end
end
end
+ def destroy
+ end
+
end
end