Sha256: 888f777f030c4445faaaa21b692834b64c4e05df81b4efceea4bf07b913dd0b6

Contents?: true

Size: 456 Bytes

Versions: 9

Compression:

Stored size: 456 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

9 entries across 9 versions & 1 rubygems

Version Path
awesome_translations-0.0.62 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.61 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.60 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.59 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.58 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.57 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.56 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.55 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.54 app/controllers/awesome_translations/caches_controller.rb