Matt Rogers
b5faedb4ff
Use reload to reload AR models
...
Passing a boolean to the model method will stop working in Rails 5.
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 13:12:23 -05:00
Matt Rogers
5805c511bb
Convert render :text to render :body
...
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 13:03:35 -05:00
Matt Rogers
60ae4f6f5f
Convert before_filter to before_action
...
`before_filter` has been removed in future versions of rails.
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 12:55:27 -05:00
Dan Rice
1ba829e960
Merge branch '2.3_branch'
2016-10-15 13:13:02 -04:00
Matt Rogers
c2296b5b99
Use Arel to generate case insensitve tag searches
2016-08-25 23:10:40 -05:00
Carsten Otto
f26f72272b
remove TODO from code, migrated to #2018
2016-05-29 23:03:58 +02:00
Carsten Otto
ed3bca22a4
Remove 'project_hidden' state
...
Compute it using project/context state
Notable change:
todo.hidden? now also returns true if the todo is completed
2016-04-16 09:27:33 +02:00
Matt Rogers
3468d1ec13
Merge branch '2.3_branch'
2015-12-08 20:14:33 -06:00
Reinier Balt
5092b388fe
Fasterer: Parallel assignment is slower
...
Parallel assignment is slower than sequential assignment.
Only got the low hanging fruit. There are some functions that
have multiple return values. Fixing this needs more refactoring.
2015-08-19 15:12:52 +02:00
Carsten Otto
e0143cf435
move actual activation to model
...
fixes #1881
2015-08-09 13:47:17 +02:00
Matt Rogers
f393afb69f
Merge branch '2.3_branch'
...
This brings the master branch up to date with the 2.3 release branch
2015-08-07 20:27:14 -04:00
Matt Rogers
258528460d
Merge pull request #1873 from C-Otto/default-context-choice-2.3
...
(2.3) in tag view, do not use more-or-less random context for the form
2015-08-07 20:02:01 -04:00
Matt Rogers
1c0a70df75
Merge pull request #1903 from lrbalt/fix-test-errors
...
Fix failing tests for non-UTC timezones
2015-08-07 19:50:58 -04:00
Reinier Balt
f2c6c2d3af
show attachment in view and make it downloadable
2015-08-05 16:05:56 +02:00
Reinier Balt
e58379e81f
This fixes failing tests when the timezone is different than utc
...
There were several problems:
* Time.now returns the systems time, not the users time
* fixtures do not translate dates from timezone to utc, but stores the
date verbatim
* calling a controller will set the timezone to the preference of the
current_user. So it could be changed while you do not realize this. I
fixed the failing test, but problems could be elsewhere
2015-08-05 11:50:33 +02:00
Dan Rice
8dd4970b0c
Merge branch '2.3_branch'
2015-06-14 18:20:08 -04:00
Dan Rice
ebec4f089d
Merge pull request #1875 from C-Otto/tracks-1836
...
(2.3) Provide data needed for partial views
2015-06-14 18:15:59 -04:00
Carsten Otto
4ce7c6bcd4
Provide data needed for partial views
...
The partials for context and project need to compute the
context's/project's id, which is done based on @context/@project.
Provide this data.
Fixes #1836
2015-05-22 23:02:41 +02:00
Carsten Otto
bba13194fd
show dependency validation errors in action edit form
2015-05-22 20:51:27 +02:00
Carsten Otto
fd8f4e2b32
Fix syntax
2015-05-22 20:51:27 +02:00
Carsten Otto
82ac4e22b0
fix syntax
2015-05-14 15:51:49 +02:00
Carsten Otto
dd21e7466c
in tag view, do not use more-or-less random context for the form
...
See #1834 for a discussion
2015-05-14 15:38:37 +02:00
Carsten Otto
a29009d3da
replace 'None' project by empty string, fix #440
2015-05-10 14:08:20 +02:00
Dan Rice
1dbef179a7
Revert breaking commits
...
This reverts the following commits:
319d4b00cd
403cc1015e
37485013a0
d08ffb3806
2015-04-14 23:28:18 -04:00
Dan Rice
556c68c2e6
Revert breaking commits
...
This reverts the following commits:
c129b8a06f
c7c923a317
006c135a64
2015-04-14 22:26:07 -04:00
Carsten Otto
aa14a8e802
Sort by 'show_from' in tickler
2015-04-13 16:25:44 +02:00
Reinier Balt
55e28d90a9
Merge pull request #1805 from C-Otto/tracks-1727
...
Sort deferred actions by "show from" in tickler, #1727
2015-04-13 16:24:17 +02:00
Reinier Balt
d08ffb3806
do not compare at_midnight in different timezones.
...
Use localtime to make sure both dates are in the
same timezone
2015-04-13 15:35:09 +02:00
Reinier Balt
006c135a64
do not compare at_midnight in different timezones.
...
Use localtime to make sure both dates are in the
same timezone
2015-04-13 15:33:22 +02:00
Carsten Otto
502543f348
typo
2015-04-13 14:38:37 +02:00
Carsten Otto
32b48df78f
catch exception to show error message in GUI as before
2015-04-13 14:37:25 +02:00
Carsten Otto
1ed137afa9
Sort by 'show_from' in tickler
2015-04-12 23:24:00 +02:00
Reinier Balt
5e8ce9f460
Merge pull request #1800 from C-Otto/typos
...
Typos
2015-04-12 17:39:30 +02:00
Carsten Otto
ca9a4a1f44
typo
2015-04-04 18:10:23 +02:00
Carsten Otto
2dfe740086
catch exception to show error message in GUI as before
2015-03-25 10:12:56 +01:00
Matt Rogers
8d24f5105a
Add a Sidebar class to represent the side bar
...
Start using it throughout the rest of the app instead of the various
instance variables
2014-11-11 19:55:00 -06:00
Matt Rogers
aa41e20e46
Remove trailing whitespace and tabs
2014-08-14 21:05:05 -05:00
Reinier Balt
595806be87
add parameter to REST api for todos to limit result to active todos. Fixes #1388
2014-05-16 15:33:45 +02:00
Reinier Balt
3b673f0838
fix some failing cucumber tests
2014-01-09 11:18:33 +01:00
Reinier Balt
def136374c
fix regression. Still need to add test to controller tests
2014-01-09 08:05:14 +01:00
Reinier Balt
5dabde222e
dry previous commit even further
2014-01-07 20:49:37 +01:00
Reinier Balt
a23587370d
remove some duplication in todos_controller
2014-01-07 20:42:19 +01:00
Reinier Balt
871e18922b
refactor the cli examples in /doc and fix a small bug in todos_controller
2013-09-18 17:45:22 +02:00
Reinier Balt
bbf6cdf702
fix failing cucumber scenario's and update gems
2013-09-18 10:38:20 +02:00
Reinier Balt
eaa66be698
fix deprecation warnings
2013-09-13 16:44:59 +02:00
Reinier Balt
e2eb31cfcc
Merge pull request #206 from mmozuras/refactor_unless_blanks_into_presents
...
Refactor unless blanks into presents
2013-09-13 06:08:16 -07:00
Reinier Balt
35d0afdfdf
Merge pull request #205 from mmozuras/refactor_negative_blanks_into_presents
...
Refactor negative blanks into presents
2013-09-13 05:56:03 -07:00
Mindaugas Mozūras
25e764b21a
Refactor "unless blank?" into "if present?"
2013-09-13 15:40:09 +03:00
Mindaugas Mozūras
a97848f0ba
Refactor negative blank? into present?
2013-09-13 15:19:25 +03:00
Mindaugas Mozūras
962b4fa5c9
Use respond_to { |format| format.any } to reduce duplication
2013-09-13 14:58:28 +03:00