Class: DeviseCertifiable::Generators::DeviseCertifiableGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- DeviseCertifiable::Generators::DeviseCertifiableGenerator
- Defined in:
- lib/generators/devise_certifiable/devise_certifiable_generator.rb
Instance Method Summary collapse
Instance Method Details
#inject_devise_certifiable_content ⇒ Object
8 9 10 11 |
# File 'lib/generators/devise_certifiable/devise_certifiable_generator.rb', line 8 def inject_devise_certifiable_content path = File.join("app", "models", "#{file_path}.rb") inject_into_file(path, "certifiable, :", :after => "devise :") if File.exists?(path) end |