Class: AwesomeTranslations::CachesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AwesomeTranslations::CachesController
- Defined in:
- app/controllers/awesome_translations/caches_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/awesome_translations/caches_controller.rb', line 4 def create cache_db_generator = AwesomeTranslations::CacheDatabaseGenerator.new(debug: true) if params[:cache] && params[:cache][:type] == "yml" cache_db_generator.cache_yml_translations else cache_db_generator.cache_translations end flash[:notice] = t("awesome_translations.the_cache_was_updated") redirect_to caches_path end |
#index ⇒ Object
2 |
# File 'app/controllers/awesome_translations/caches_controller.rb', line 2 def index; end |