Skip to content
Browse files

inherit from application controller and get rid of hacks

  • Loading branch information...
1 parent 6a1035a commit e1359d43121d82ae875cf3302b7b32ea89693542 @grosser committed Jul 20, 2012
Showing with 2 additions and 11 deletions.
  1. +2 −11 app/controllers/translation_keys_controller.rb
View
13 app/controllers/translation_keys_controller.rb
@@ -1,16 +1,7 @@
-class TranslationKeysController < ActionController::Base
+class TranslationKeysController < ApplicationController
before_filter :authenticate
before_filter :find_translation_key, :only=>%w[show edit update destroy]
- #use host layout/helpers
- helper :all
- layout :choose_layout
-
- #prevent 'method missing' for normally controller-side helpers
- def current_user;nil;end
- def logged_in?;false;end
- helper_method :current_user, :logged_in?
-
def index
@translation_keys = TranslationKey.find(:all)
end
@@ -83,4 +74,4 @@ def add_default_locales_to_translation
@translation_key.translations.build(:locale => locale)
end
end
-end
+end

0 comments on commit e1359d4

Please sign in to comment.
Something went wrong with that request. Please try again.