Commit 7ba568b56d4df5c74c813ad95bfdcc1700bdf600

Authored by Karpikau Andrei
1 parent 585f39c5

change version

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
... ...
... ... @@ -6,9 +6,9 @@ module Kanjai
6 6
7 7 protect_from_forgery
8 8
9   - before_filter :authenticate_admin_user!
  9 + before_action :authenticate_admin_user!
10 10
11   - before_filter :set_locale
  11 + before_action :set_locale
12 12
13 13 private
14 14
... ...
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
... ...
... ... @@ -3,7 +3,7 @@ module Kanjai
3 3
4 4 include Admin::PagesHelper
5 5
6   - after_filter :skip_set_cookies_header
  6 + after_action :skip_set_cookies_header
7 7
8 8
9 9 def show
... ...
... ... @@ -4,8 +4,8 @@ module Kanjai
4 4
5 5 #protect_from_forgery
6 6
7   - before_filter :define_locale
8   - before_filter :get_page
  7 + before_action :define_locale
  8 + before_action :get_page
9 9
10 10 include Kanjai::ContentFunction
11 11
... ...
1 1 module Kanjai
2   - VERSION = "0.0.84"
  2 + VERSION = "0.0.85"
3 3 end
... ...