class Trestle::Auth::Otp::Generators::ModelGenerator

Public Instance Methods

inject_model_methods() click to toggle source
# 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