Sha256: 6f4d6d6a42958e438d875ed1d59273c896f4eb06adedc39cf5e6b0d19940d71d
Contents?: true
Size: 813 Bytes
Versions: 3
Compression:
Stored size: 813 Bytes
Contents
<% if defined?(ActiveRecord::Railtie) -%> class <%= table_prefix.camelize %> < ApplicationRecord include Rodauth::Rails.model<%= "(:#{table_prefix})" unless primary? %> # add concerns above. # add model configurations above. # add belongs_to associations above. # add has_one associations above. # add has_many associations above. # add attachments above. # add scopes above. validates :email, presence: true # add validations above. # add callbacks above. # add delegations above. enum :status, unverified: 1, verified: 2, closed: 3 # add misc attribute macros above. # add methods above. end <% else -%> class <%= table_prefix.camelize %> < Sequel::Model include Rodauth::Rails.model plugin :enum enum :status, unverified: 1, verified: 2, closed: 3 end <% end -%>
Version data entries
3 entries across 3 versions & 1 rubygems