mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-27 03:41:38 +01:00
Use Rails plugin generator and adapt
This commit is contained in:
5
app/controllers/crono/application_controller.rb
Normal file
5
app/controllers/crono/application_controller.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
module Crono
|
||||
class ApplicationController < ActionController::Base
|
||||
protect_from_forgery with: :exception
|
||||
end
|
||||
end
|
||||
11
app/controllers/crono/jobs_controller.rb
Normal file
11
app/controllers/crono/jobs_controller.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module Crono
|
||||
class JobsController < ApplicationController
|
||||
def index
|
||||
@jobs = Crono::CronoJob.all
|
||||
end
|
||||
|
||||
def show
|
||||
@job = Crono::CronoJob.find(params[:id])
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user