Class: Trestle::Auth::Otp::Generators::AdminGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Trestle::Auth::Otp::Generators::AdminGenerator
- Defined in:
- lib/generators/trestle/auth/otp/admin/admin_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_admin ⇒ Object
14 15 16 |
# File 'lib/generators/trestle/auth/otp/admin/admin_generator.rb', line 14 def create_admin template "admin.rb.erb", File.join('app/admin/auth', "#{model.underscore.pluralize}_admin.rb") end |
#devise? ⇒ Boolean
18 19 20 |
# File 'lib/generators/trestle/auth/otp/admin/admin_generator.rb', line 18 def devise? [:devise] end |