Class: Trestle::Auth::Generators::AccountGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Trestle::Auth::Generators::AccountGenerator
- Defined in:
- lib/generators/trestle/auth/account/account_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_admin ⇒ Object
13 14 15 |
# File 'lib/generators/trestle/auth/account/account_generator.rb', line 13 def create_admin template "admin.rb.erb", "app/admin/auth/account_admin.rb" end |
#devise? ⇒ Boolean
17 18 19 |
# File 'lib/generators/trestle/auth/account/account_generator.rb', line 17 def devise? [:devise] end |