Browse Source

x

pull/952/head
James Rose 3 years ago committed by Kat
parent
commit
16a9aab1b2
  1. 11
      obj_to_form.rb

11
obj_to_form.rb

@ -1,11 +0,0 @@
def filename(klass) = [klass.to_s.underscore, "rb"].join(".")
def write(path, body)
path = Rails.root.join("app", "models", path)
puts "#{path}"
File.write(path, body) unless File.exist?(path)
end
FormHandler.instance.current_lettings_form.sections.each do |section|
path = filename(section.class)
write(path, "hi")
end; nil
Loading…
Cancel
Save