Sha256: 6a92efe1130028808607283906a8dfc422a4ee9a92c13baf9c366cdbafcee32a
Contents?: true
Size: 1.71 KB
Versions: 2
Compression:
Stored size: 1.71 KB
Contents
=begin Lesli Copyright (c) 2023, Lesli Technologies, S. A. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. Lesli · Ruby on Rails SaaS Development Framework. Made with ♥ by https://www.lesli.tech Building a better future, one line of code at a time. @contact hello@lesli.tech @website https://www.lesli.dev @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ // · =end module LesliAdmin class Account < Lesli::Account # accounts always belongs to a user belongs_to :user, optional: true # account resources has_many :users has_one :bell, class_name: "LesliBell::Account" # account statuses enum status: [ :registered, :onboarding, :active, :suspended ] # company region (GDPR) enum region: { latin_america: "latin_america", united_states: "united_states", european_union: "european_union" } # required a name for the lesli account validates :company_name, :presence => true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lesli_admin-0.2.0 | app/models/lesli_admin/account.rb |
lesli_admin-0.1.0 | app/models/lesli_admin/account.rb |