Sha256: 37baeccd8ac0212de7bbb4c2305d34425ee97d417ea97f8eba8302c2a24234d5

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

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

  def create
    cache_db_generator = AwesomeTranslations::CacheDatabaseGenerator.new(debug: false)
    cache_db_generator.cache_translations

    flash[:notice] = "The cache was updated"
    redirect_to caches_path
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
awesome_translations-0.0.26 app/controllers/awesome_translations/caches_controller.rb
awesome_translations-0.0.25 app/controllers/awesome_translations/caches_controller.rb