aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhenium <rhenium@rhe.jp>2014-01-24 04:22:00 +0900
committerRhenium <rhenium@rhe.jp>2014-01-24 04:22:00 +0900
commit3b8bc9f15cc64e62986da9a6ec6b106d3ccc41b4 (patch)
tree59f536c154634e7a394a298d49d7bbc6c5a899ce
parent5d05e40f57ae0c7406353d6b888e17e4cb944a62 (diff)
downloadaclog-3b8bc9f15cc64e62986da9a6ec6b106d3ccc41b4.tar.gz
replace *_filter to *_action
-rw-r--r--app/controllers/apidocs_controller.rb2
-rw-r--r--app/controllers/errors_controller.rb3
-rw-r--r--lib/aclog/constants.rb8
3 files changed, 2 insertions, 11 deletions
diff --git a/app/controllers/apidocs_controller.rb b/app/controllers/apidocs_controller.rb
index 7a86fe1..a24a2f2 100644
--- a/app/controllers/apidocs_controller.rb
+++ b/app/controllers/apidocs_controller.rb
@@ -1,5 +1,5 @@
class ApidocsController < ApplicationController
- before_filter :reload_docs
+ before_action :reload_docs
def index
@resources = Apidoc.resources
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
index 3f20494..112e2d3 100644
--- a/app/controllers/errors_controller.rb
+++ b/app/controllers/errors_controller.rb
@@ -1,6 +1,5 @@
class ErrorsController < ApplicationController
- skip_before_filter :check_format
- before_filter :force_format
+ before_action :force_format
layout :select_layout
def render_error
diff --git a/lib/aclog/constants.rb b/lib/aclog/constants.rb
deleted file mode 100644
index 8d07d46..0000000
--- a/lib/aclog/constants.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-module Aclog
- module Constants
- module IssueStatus
- RESOLVED = 0
- PENDING = 1
- end
- end
-end