Class: Trestle::Auth::Otp::Generators::ModelGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Trestle::Auth::Otp::Generators::ModelGenerator
- Defined in:
- lib/generators/trestle/auth/otp/model/model_generator.rb
Instance Method Summary collapse
Instance Method Details
#inject_model_methods ⇒ Object
10 11 12 |
# File 'lib/generators/trestle/auth/otp/model/model_generator.rb', line 10 def inject_model_methods inject_into_file "app/models/#{name.underscore}.rb", " include Trestle::Auth::Otp::ModelMethods\n", before: /^end/ end |