Sha256: 565c56e3b2253e09772518f870ce3579b37e4e6b7b3ef48455baadc32c71b5f9
Contents?: true
Size: 313 Bytes
Versions: 1
Compression:
Stored size: 313 Bytes
Contents
module TimeMachine class ApplicationController < ActionController::Base def reset Timecop.return redirect_to params[:redirect] || :back end def travel date = Chronic.parse params[:date] Timecop.travel date redirect_to params[:redirect] || :back end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
time_machine-0.0.2 | app/controllers/time_machine/application_controller.rb |