diff options
| author | mo k <mo@mokhan.ca> | 2012-03-04 12:52:25 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-03-04 12:52:25 -0700 |
| commit | 3e99f29dc46480161658f5ae355aefaa94b00e1d (patch) | |
| tree | ae1b0ecc09ef7c53033b2ed71e6d26269dc8beff /controller | |
| parent | 343d63f2c9862fe66dff7bff1e04e344e4a7814e (diff) | |
rename models dir to domain and add recursive load of all file.
Diffstat (limited to 'controller')
| -rw-r--r-- | controller/main.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
