Employers working - onboarding to card print
CI / scan_ruby (push) Failing after 10m41s
CI / lint (push) Failing after 7m31s
CI / test (push) Failing after 8m29s
Docker / build-and-test-image (push) Failing after 11m32s

This commit is contained in:
Jason Jordan
2026-01-15 11:37:50 -05:00
parent 0464ba8929
commit 4fac3b1036
108 changed files with 4113 additions and 431 deletions
@@ -4,7 +4,18 @@ module <%= @module %>
self.table_name = '<%= table_name %>'
<%- @fields.each do |fi| -%>
alias_attribute :<%= fi.underscore %>, :<%= fi %>
alias_attribute :<%= fi.underscore.gsub(/(?=\d)/, "_") %>, :<%= fi %>
<%- end -%>
<%- unless db_name == 'BrittonWeb' -%>
def attributes
rails_like = {
<%- @fields.each do |fi| -%>
<%= fi.underscore.gsub(/(?=\d)/, "_") %>: self.<%= fi.underscore.gsub(/(?=\d)/, "_") %>,
<%- end -%>
}
super.merge(rails_like)
end
<%- end -%>