Class: ThreddedCreateApp::Tasks::AddDisplayNameToUsers

Inherits:
Base
  • Object
show all
Defined in:
lib/thredded_create_app/tasks/add_display_name_to_users.rb

Instance Attribute Summary

Attributes inherited from Base

#app_hostname, #app_name, #app_path, #gems

Instance Method Summary collapse

Methods inherited from Base

#before_bundle, #devise_form_fields_begin_pattern, #webpack_js?

Methods included from RunCommand

#run

Methods included from Logging

#log_command, #log_error, #log_info, #log_stderr, #log_verbose, #log_warn, #program_name

Constructor Details

#initialize(simple_form: true, **args) ⇒ AddDisplayNameToUsers

Returns a new instance of AddDisplayNameToUsers.



7
8
9
10
# File 'lib/thredded_create_app/tasks/add_display_name_to_users.rb', line 7

def initialize(simple_form: true, **args)
  super
  @simple_form = simple_form
end

Instance Method Details

#after_bundleObject



16
17
18
19
20
# File 'lib/thredded_create_app/tasks/add_display_name_to_users.rb', line 16

def after_bundle
  add_display_name
  configure_devise
  configure_thredded
end

#summaryObject



12
13
14
# File 'lib/thredded_create_app/tasks/add_display_name_to_users.rb', line 12

def summary
  'Add display_name to the Devise User model'
end