class Trestle::Auth::Generators::AccountGenerator

Public Instance Methods

create_admin() click to toggle source
# 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?() click to toggle source
# File lib/generators/trestle/auth/account/account_generator.rb, line 17
def devise?
  options[:devise]
end

Protected Instance Methods

parameter_name() click to toggle source
# File lib/generators/trestle/auth/account/account_generator.rb, line 22
def parameter_name
  singular_name
end
singular_name() click to toggle source
# File lib/generators/trestle/auth/account/account_generator.rb, line 26
def singular_name
  model.demodulize.underscore
end