Sha256: 8dbf2b940db16b5f0dd2afa6b372ab6d20b4fb827f7f09dbafbde4ebf66fe687
Contents?: true
Size: 663 Bytes
Versions: 84
Compression:
Stored size: 663 Bytes
Contents
module Pu module Rodauth module Concerns module AccountSelector 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 private def table @table ||= account_name.underscore.pluralize end def account_path @account_path ||= account_name.singularize.underscore end def table_prefix @table_prefix ||= account_path.tr("/", "_") end end end end end
Version data entries
84 entries across 84 versions & 1 rubygems