Sha256: ef33db88a2e63b0883fea60311977c1bfb197be6f6f4cc10f5948ea9bb52f375
Contents?: true
Size: 365 Bytes
Versions: 13
Compression:
Stored size: 365 Bytes
Contents
class ReloaderController < ApplicationController def index @version = 'INITIAL' new_version = params[:version] template = ERB.new(File.read(File.join(File.dirname(__FILE__), 'reloader_controller.rb.erb'))) File.open(File.join(File.dirname(__FILE__), 'reloader_controller.rb'), 'w') do |f| f.write template.result(binding) end end end
Version data entries
13 entries across 13 versions & 1 rubygems