Sha256: 8804c66a532b79ea2fadf225934579ff73f0cb9c96120895cc0b8c02034a27d4

Contents?: true

Size: 457 Bytes

Versions: 21

Compression:

Stored size: 457 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] = "The cache was updated"
    redirect_to caches_path
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
awesome_translations-0.0.53 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.52 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.51 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.50 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.49 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.48 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.47 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.46 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.45 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.44 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.43 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.42 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.41 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.40 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.39 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.38 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.37 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.36 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.35 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.34 app/controllers/awesome_translations/caches_controller.rb