Add time machine
This commit is contained in:
19
app/actions/timemachine/show.rb
Normal file
19
app/actions/timemachine/show.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
module Adamantium
|
||||
module Actions
|
||||
module Timemachine
|
||||
class Show < Action
|
||||
include Deps["views.timemachine.show"]
|
||||
|
||||
def handle(req, res)
|
||||
year, month, day = [
|
||||
req.params[:year],
|
||||
req.params[:month],
|
||||
req.params[:day]
|
||||
]
|
||||
|
||||
res.render show, year: year, month: month, day: day
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user