Class: Trestle::Auth::Otp::Generators::ModelGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/trestle/auth/otp/model/model_generator.rb

Instance Method Summary collapse

Instance Method Details

#inject_model_methodsObject



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