Sha256: c0e1a9ef1c0e8e850b3e97e72987d567c871ca0a66753e2e17b92c92347e6856
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
# frozen_string_literal: true module DeviseSecurity module Generators # Generator for Rails to create or append to a Devise initializer. class InstallGenerator < Rails::Generators::Base LOCALES = %w[en es de fr it tr].freeze source_root File.expand_path('../../templates', __FILE__) desc 'Install the devise security extension' def copy_initializer template('devise-security.rb', 'config/initializers/devise-security.rb', ) end def copy_locales LOCALES.each do |locale| copy_file( "../../../config/locales/#{locale}.yml", "config/locales/devise.security_extension.#{locale}.yml", ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise-security-0.13.0 | lib/generators/devise_security/install_generator.rb |