Method: Mongoid::Generators::DeviseGenerator#inject_devise_content
- Defined in:
- lib/generators/mongoid/devise_generator.rb
permalink #inject_devise_content ⇒ Object
[View source] [View on GitHub]
19 20 21 |
# File 'lib/generators/mongoid/devise_generator.rb', line 19 def inject_devise_content inject_into_file model_path, model_contents, after: "include Mongoid::Document\n" if model_exists? end |