Commit 7852f785276330e702923e1d83b22468c3313fd3
1 parent
bfed284d
Exists in
master
and in
28 other branches
Loading presenters automatically
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
lib/file_presenter.rb
... | ... | @@ -99,9 +99,9 @@ class FilePresenter |
99 | 99 | def method_missing(m, *args) |
100 | 100 | @file.send(m, *args) |
101 | 101 | end |
102 | - | |
103 | 102 | end |
104 | 103 | |
105 | 104 | # Preload FilePresenters to allow `FilePresenter.for()` to work |
106 | -FilePresenter::Generic | |
107 | -FilePresenter::Image | |
105 | +Dir.glob(File.join('app', 'presenters', '*.rb')) do |file| | |
106 | + load file | |
107 | +end | ... | ... |