1 changed files with 0 additions and 11 deletions
@ -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…
Reference in new issue