Sha256: 602ce0db4a961fae15844189c3af81acebda23b804b1cf90cda9bcdce46ae903
Contents?: true
Size: 374 Bytes
Versions: 13
Compression:
Stored size: 374 Bytes
Contents
class ReloaderController < ApplicationController def index @version = <%= new_version %> 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