summaryrefslogtreecommitdiffstats
path: root/app/helpers/my_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/my_helper.rb')
-rw-r--r--app/helpers/my_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/my_helper.rb b/app/helpers/my_helper.rb
index 20abc5f3c..0a9324515 100644
--- a/app/helpers/my_helper.rb
+++ b/app/helpers/my_helper.rb
@@ -108,7 +108,7 @@ module MyHelper
to_a
end
- def timelog_items(settings)
+ def timelog_items(settings={})
days = settings[:days].to_i
days = 7 if days < 1 || days > 365