module Pu::Rodauth::Concerns::AccountSelector
def self.included(base)
def self.included(base) base.send :argument, :account_name, type: :string, desc: "name of the account model. " base.send :class_option, :migration_name, type: :string, desc: "[CONFIG] name of the generated migration file" end
def account_path
def account_path @account_path ||= account_name.singularize.underscore end
def table
def table @table ||= account_name.underscore.pluralize end
def table_prefix
def table_prefix @table_prefix ||= account_path.tr("/", "_") end