Class: AwesomeTranslations::MigrationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/awesome_translations/migrations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/awesome_translations/migrations_controller.rb', line 4

def create
  params[:m].each do |translation_value_id, check_value|
    next unless check_value == "1"

    translation_value = AwesomeTranslations::CacheDatabaseGenerator::TranslationValue.find(translation_value_id)
    translation_value.migrate_to_awesome_translations_namespace!
  end

  redirect_to new_migration_path
end

#newObject



2
# File 'app/controllers/awesome_translations/migrations_controller.rb', line 2

def new; end