Sha256: 22c4577066422f656ed635dd65e497234613bdae04d748f8640252eab70f72f5
Contents?: true
Size: 487 Bytes
Versions: 5
Compression:
Stored size: 487 Bytes
Contents
module Trestle module Auth module Otp module Generators class ModelGenerator < ::Rails::Generators::Base desc "Add OTP to an Administrator model for use with trestle-auth" argument :name, type: :string, default: "Administrator" def inject_model_methods inject_into_file "app/models/#{name.underscore}.rb", " include Trestle::Auth::Otp::ModelMethods\n", before: /^end/ end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems