Method: Sorcery::Generators::InstallGenerator#configure_model
- Defined in:
- lib/generators/sorcery/install_generator.rb
#configure_model ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'lib/generators/sorcery/install_generator.rb', line 47 def configure_model # Generate the model and add 'authenticates_with_sorcery!' unless you passed --only-submodules unless only_submodules? generate "model #{model_class_name} --skip-migration" inject_sorcery_to_model end end |