From 3e99f29dc46480161658f5ae355aefaa94b00e1d Mon Sep 17 00:00:00 2001 From: mo k Date: Sun, 4 Mar 2012 12:52:25 -0700 Subject: rename models dir to domain and add recursive load of all file. --- controller/main.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'controller') diff --git a/controller/main.rb b/controller/main.rb index abe5367..756c61b 100644 --- a/controller/main.rb +++ b/controller/main.rb @@ -23,3 +23,13 @@ class MainController < Controller return 'There is no \'notemplate.xhtml\' associated with this action.' end end +class TimesheetController < Controller + def initialize(repository) + @repository = repository + end + def index + @repository.find_all Timesheet + end +end +class Timesheet +end -- cgit v1.2.3