Its been a while
CI / scan_ruby (push) Failing after 2m13s
CI / lint (push) Failing after 20s

This commit is contained in:
Jason Jordan
2026-07-23 10:41:46 -04:00
parent 16fadfd529
commit 9853d58469
83 changed files with 1978 additions and 243 deletions
@@ -0,0 +1,23 @@
module <%= @module %>
class <%= class_name %> < <%= @db_record %>
self.table_name = '<%= table_name %>'
<%- @fields.each do |fi| -%>
alias_attribute :<%= fi.underscore.gsub(/(?=\d)/, "_") %>, :<%= fi %>
<%- end -%>
<%- unless db_name == 'BrittonWeb || Baclight' -%>
def attributes
rails_like = {
<%- @fields.each do |fi| -%>
<%= fi.underscore.gsub(/(?=\d)/, "_") %>: self.<%= fi.underscore.gsub(/(?=\d)/, "_") %>,
<%- end -%>
}
super.merge(rails_like)
end
<%- end -%>
end
end