Daniel O'Connor
54acc369ab
Rubocop
2025-09-20 09:43:22 +00:00
Brenda
7257b2ada1
Update with frozen literals
2020-01-10 16:50:52 +13:00
Brenda Wallace
5d7ef7e861
rubocop lint
2019-08-10 17:30:41 +12:00
Brenda Wallace
d4644ccdf8
Added join to members to fix error caused by discard gem
2019-08-10 11:37:52 +12:00
Brenda Wallace
9b6db4cde7
Merge branch 'dev' into upgrade/rails-5
2018-06-17 20:59:49 +12:00
Brenda Wallace
0d303ee6df
Don't allow duplicate plant parts names
...
Make factort's plant_part.name unique
Setting plant_part.name in specs
Unique names for plant parts
2018-06-04 17:42:41 +12:00
Brenda Wallace
75e401162e
More dependent declared on relationships
2018-04-02 16:12:40 +12:00
Brenda Wallace
a0fe19651e
Plant parts model using distinct query
2018-01-06 09:31:39 +13:00
Brenda Wallace
b6c9b13d4d
Models inherit from application record
2018-01-03 17:16:14 +13:00
Brenda Wallace
cabc4fd030
%i-literals should be delimited by ( and )
2017-11-04 10:29:31 +13:00
Brenda Wallace
7104781d1b
Rubocop array fix ups
2017-11-01 15:13:32 +13:00
Brenda Wallace
92195d51d2
Removed redundant returns
2016-12-04 21:21:35 +00:00
Brenda Wallace
62e7c716dd
Removed extra empty blank lines
2016-11-26 12:06:02 +13:00
Daniel O'Connor
4b4e0cf69a
$ rubocop --only HashSyntax --auto-correct
...
483 files inspected, 2018 offenses detected, 2018 offenses corrected
2016-05-19 15:53:11 -04:00
Taylor Griffin
acbd3f9a9e
implement strong parameters instead of protected attributes
2014-11-18 20:08:54 +11:00
Taylor Griffin
56b4f8a221
mimick old FriendlyId behavior when calling find on a model - therefore, Model.find not Model.friendly.find (this probably needs review)
2014-11-16 20:21:34 +11:00
Taylor Griffin
40a88b5b09
tests run but fail like whoa
2014-11-15 21:44:55 +11:00
Miles Gould
338a7512e8
Explain reordering of plant_parts in a comment.
2014-01-02 11:04:57 +00:00
Miles Gould
2a260abf05
Fix Postgres problem with PlantParts#crops
...
Postgres complains if the ORDER BY clause of a SELECT DISTINCT query is
not precisely one of the SELECTed fields. The default sort order on
crops is lower(name), and Postgres is not smart enough to notice that it
can calculate this from fields which are selected. The solution is to
override PlantParts#crops to remove the ORDER BY clause, and replace it
with `ORDER BY name`. This is not perfect, because it means the crops
associated to plant parts will not be sorted in the same order as crops
on the rest of the site.
2013-12-03 12:56:57 +00:00
Skud
ba27bb6490
plant parts have crops through harvests
2013-11-06 10:38:50 +11:00
Miles Gould
084bdc4f40
Add friendly URLs to plant parts.
2013-10-31 00:19:48 +00:00
Miles Gould
e9a3c0f4ee
rails g scaffold PlantPart...
...
Also migration to remove the string plant_part.
2013-10-30 23:32:20 +00:00