Sha256: a8da5a4048f5d44f1e2033db23c4d0cc81e94e61eaec575e04e632fea0ead1d8
Contents?: true
Size: 929 Bytes
Versions: 52
Compression:
Stored size: 929 Bytes
Contents
#!/bin/bash GEM_NAME=${PWD##*/} INSTALL_NAME=${GEM_NAME//cmor_/cmor\:} # Delete old dummy app rm -rf spec/dummy # Generate new dummy app DISABLE_MIGRATE=true rake dummy:app rm spec/dummy/.ruby-version # Satisfy prerequisites cd spec/dummy # Add ActiveStorage rails active_storage:install # I18n configuration touch config/initializers/i18n.rb echo "Rails.application.config.i18n.available_locales = [:en, :de]" >> config/initializers/i18n.rb echo "Rails.application.config.i18n.default_locale = :de" >> config/initializers/i18n.rb # I18n routing touch config/initializers/route_translator.rb echo "RouteTranslator.config do |config|" >> config/initializers/route_translator.rb echo " config.force_locale = true" >> config/initializers/route_translator.rb echo "end" >> config/initializers/route_translator.rb # Install rails generate $INSTALL_NAME:install rails $GEM_NAME:install:migrations db:migrate db:test:prepare
Version data entries
52 entries across 52 versions & 2 rubygems