Sha256: d7b81e7a7177bfb58788b62b1ef5f841123f7f7399ba3daf9d1e03e5020d6897
Contents?: true
Size: 1.84 KB
Versions: 12
Compression:
Stored size: 1.84 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 platform. 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.tech @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ // · =end module Lesli class Account::Log < ApplicationRecord belongs_to :account def self.log(system_module_action, system_process, title=nil, description=nil, payload=nil) Account.first.activities.create( system_module: system_module_action, system_process: system_process, description: description, title: title, payload: payload ) end def self.log_email(system_module_action, title="email_sent", description="email", payload=nil) Account&.first&.logs&.create( system_module: system_module_action, system_process: "mailer", description: description, payload: payload, title: title ) end end end
Version data entries
12 entries across 12 versions & 1 rubygems