Jyri-Petteri Paloposki
d4c9041ccd
More code style fixes
2021-01-06 03:47:35 +02:00
Jyri-Petteri Paloposki
d8acf60049
Code style fixes
2020-10-10 05:14:24 +03:00
Matt Rogers
32d267d6cd
Remove private variable usage from models
...
It seems that `@new_record_before_save` as an instance variable has been
present since around 2007 and it wasn't until Rails 5.1 that things were
changed in such a way to make this inaccessible now.
2018-11-12 13:23:30 -06:00
Matt Rogers
6d81e14b41
Use a non deprecated method to collect errors
...
Hash-based access to set an error is deprecated. Use
ActiveModel::Errors.add instead.
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-11-03 15:12:27 -05:00
Reinier Balt
9f81e1a5c3
fasterer: Use attr_reader for reading ivars.
2015-08-19 14:52:13 +02:00
Carsten Otto
a29009d3da
replace 'None' project by empty string, fix #440
2015-05-10 14:08:20 +02:00
Matt Rogers
aa41e20e46
Remove trailing whitespace and tabs
2014-08-14 21:05:05 -05: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
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
Reinier Balt
2daffef683
fix failing tests
2013-06-17 10:06:38 +02:00
Reinier Balt
671f64b419
move to strong_parameters of rails4.
2013-05-27 12:44:31 +02:00
Reinier Balt
f891ee86fe
fix clearing show_from fails
...
caused by slightly different (better) workings of aasm
2013-05-03 19:28:26 +02:00
Matt Rogers
55eb7b818c
Revert "Use an attr_reader for attributes"
...
This reverts commit 6376bd7ef6 .
2013-04-30 23:02:54 -05:00
Matt Rogers
49886b1bd3
Revert "Cache the project and context names"
...
This reverts commit 610152b8dd .
2013-04-30 23:01:46 -05:00
Matt Rogers
610152b8dd
Cache the project and context names
2013-04-29 21:01:30 -05:00
Matt Rogers
6376bd7ef6
Use an attr_reader for attributes
2013-04-29 21:01:30 -05:00
Matt Rogers
1c2de3fd5a
Remove codejunk
...
Extra whitespace, explicit returns, and an extra begin/end pair are all
gone.
2013-04-29 21:01:21 -05:00
Reinier Balt
010d0e9ba0
refactor creating todos in todos_controller
2013-04-29 15:15:48 +02:00