Sha256: d50f4c4e928d0521f96c6377f03481e968ad5369740c3052b37d32f41f116e41
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
module Kakimasu class HomeController < ::ApplicationController # Include neccessary helpers include SearchTranslationsHelper include CountingHelper def index # Check if user has permissions authorize :translation, :index? policy_scope(Translation) # Get translation percentage @all_keys_count = countKeys(search_for_translations('all_translation_keys')) @missing_translation_keys_count = countKeys(search_for_translations('missing_translations')) @percentage = translationPercentage(@all_keys_count, @missing_translation_keys_count) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kakimasu-1.0.0 | app/controllers/kakimasu/home_controller.rb |