Showing
6 changed files
with
9 additions
and
9 deletions
| 1 | 1 | module Kanjai |
| 2 | 2 | class Admin::PagesController < AdminController |
| 3 | 3 | |
| 4 | - before_filter :get_page_list, :only => [:new, :create] | |
| 5 | - before_filter :get_page_list_without_current, :only => [:edit, :update] | |
| 4 | + before_action :get_page_list, :only => [:new, :create] | |
| 5 | + before_action :get_page_list_without_current, :only => [:edit, :update] | |
| 6 | 6 | |
| 7 | 7 | def new |
| 8 | 8 | @page = Page.new | ... | ... |
| 1 | 1 | module Kanjai |
| 2 | 2 | class ApplicationController < ::ApplicationController#ActionController::Base |
| 3 | - before_filter :instantiate_controller_and_action_names | |
| 3 | + before_action :instantiate_controller_and_action_names | |
| 4 | 4 | |
| 5 | 5 | def instantiate_controller_and_action_names |
| 6 | 6 | @current_action = action_name | ... | ... |