Sha256: 446653c0ff68dce4315ecb6099ebb793009b819b8fc1e586f37aea541b7b317f
Contents?: true
Size: 556 Bytes
Versions: 17
Compression:
Stored size: 556 Bytes
Contents
module DevisePasswordSharingExtension module Generators class DevisePasswordSharingExtensionGenerator < Rails::Generators::NamedBase namespace 'devise_password_sharing_extension' desc 'Add :password_sharing directive in the given model. Also generate migration for ActiveRecord' def inject_devise_password_sharing_content path = File.join('app', 'models', "#{file_path}.rb") inject_into_file(path, 'password_sharing, :', :after => 'devise :') if File.exists?(path) end hook_for :orm end end end
Version data entries
17 entries across 17 versions & 1 rubygems