Sha256: a128fc7fedbec0c0192454ec5080ae4a8df708c2a6bf97810d2e2e064277efa0
Contents?: true
Size: 712 Bytes
Versions: 3
Compression:
Stored size: 712 Bytes
Contents
module DeviseSecurity module Generators # Generator for Rails to create or append to a Devise initializer. class InstallGenerator < Rails::Generators::Base LOCALES = %w[ en de it ] 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
3 entries across 3 versions & 1 rubygems