Sha256: 3f3026814ee52010556ded0070b222db1d34a90a2cab9540e03a792c742ec86f
Contents?: true
Size: 586 Bytes
Versions: 6
Compression:
Stored size: 586 Bytes
Contents
module DeviseXfactorAuthenticatable module Generators class DeviseXfactorAuthenticationGenerator < Rails::Generators::NamedBase namespace "devise_xfactor_authentication" desc "Adds :devise_xfactor_authenticable directive in the given model. It also generates an active record migration." def inject_devise_xfactor_authentication_content path = File.join("app", "models", "#{file_path}.rb") inject_into_file(path, "devise_xfactor_authenticatable, :", :after => "devise :") if File.exists?(path) end hook_for :orm end end end
Version data entries
6 entries across 6 versions & 1 rubygems