Sha256: 682a7ca30cc7d7f337779bd0686e384c1142139799f15e79c01996b9ee066c43

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

class AwesomeTranslations::CachesController < AwesomeTranslations::ApplicationController
  def index; end

  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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
awesome_translations-0.0.66 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.65 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.64 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.63 app/controllers/awesome_translations/caches_controller.rb