Brenda Wallace
|
c22c92e9f4
|
Validates min price on product
the database has this constraint already. Adding so the ruby models
match.
|
2017-05-29 16:17:43 +12:00 |
|
Brenda Wallace
|
adf585852a
|
Revert "Wikipedia url is always required"
This reverts commit ba5ad00f5c.
|
2017-05-29 16:17:43 +12:00 |
|
Brenda Wallace
|
b982793fbf
|
Wikipedia url is always required
The form says it's required, so it should be required.
|
2017-05-29 16:17:43 +12:00 |
|
Brenda Wallace
|
6fef56ebb7
|
DRY the crops controller
|
2017-05-29 16:17:43 +12:00 |
|
Brenda Wallace
|
eacdab45ba
|
Removed planting.with_dates
|
2017-05-28 18:44:26 +12:00 |
|
Brenda Wallace
|
dcb949e7b3
|
Fixed bug - error when planting has no finished_at
|
2017-05-28 18:10:53 +12:00 |
|
Brenda Wallace
|
4726b57c47
|
Inactive plantings show as tiny thumbnails
|
2017-05-28 17:13:04 +12:00 |
|
Brenda Wallace
|
6e7bf11ec8
|
Seeds delegate name and default_photo to their crop
|
2017-05-20 17:00:49 +12:00 |
|
Brenda Wallace
|
5f9b0890fb
|
Move seed.interesting to a scope
|
2017-05-20 16:58:49 +12:00 |
|
Brenda Wallace
|
4841c52bcd
|
order crop.plant_parts by plant_parts.name
|
2017-05-20 15:46:37 +12:00 |
|
Brenda Wallace
|
7baabca827
|
Unique is un-necesary when declaring relationship to plant_parts
|
2017-05-20 15:46:37 +12:00 |
|
Brenda Wallace
|
9a19007b85
|
More railsy order by in models
|
2017-05-20 15:46:37 +12:00 |
|
Brenda Wallace
|
677f850e21
|
Removed extra blank line
|
2017-05-20 15:46:37 +12:00 |
|
Brenda Wallace
|
d771bc3688
|
More railsy syntax in default scopes
|
2017-05-20 15:46:37 +12:00 |
|
Brenda Wallace
|
1dfc58c120
|
Remove default scope from harvest.
Causes an ORDER clause to be added in queries even when not selecting
from that table. E.g. if we 're looking for PlantParts that have a
Harvest
|
2017-05-20 15:46:37 +12:00 |
|
Brenda Wallace
|
6f58f266a6
|
Moving has_photos scope to PhotoCapable
-
|
2017-05-20 15:46:37 +12:00 |
|
Brenda Wallace
|
ccc5eb3c9a
|
Make calc_and_set_days_before_maturity public
|
2017-04-28 20:48:25 +12:00 |
|
Brenda Wallace
|
4ea681984f
|
Call calc_and_set_days_before_maturity from controller
|
2017-04-28 20:48:25 +12:00 |
|
Brenda Wallace
|
787fca138b
|
Added helpful comment about days_until_maturity
|
2017-04-28 20:48:25 +12:00 |
|
Brenda Wallace
|
b820615081
|
Moved planting maturity to planting model. simplified controller
|
2017-04-28 20:48:25 +12:00 |
|
Brenda Wallace
|
d2378376e4
|
Plantings validators
Adding garden presence true.
Checks crop presence before crop approved
|
2017-04-22 20:48:48 +12:00 |
|
Brenda Wallace
|
52b4064a2d
|
Don't overwrite edited photo titles
|
2017-04-18 07:09:47 +00:00 |
|
Brenda Wallace
|
4711e4669f
|
Layout change on photos
|
2017-04-18 07:09:47 +00:00 |
|
Brenda Wallace
|
f333607572
|
Reduced query count by .includes() on plantings
|
2017-04-17 08:59:34 +00:00 |
|
Daniel O'Connor
|
0201e873eb
|
Merge branch 'dev' into fix_1305
|
2017-04-15 17:03:15 +09:30 |
|
Brenda Wallace
|
ac165ce0cd
|
Adding counter caches
|
2017-04-14 11:32:31 +12:00 |
|
Daniel O'Connor
|
6ba4b4560e
|
Fix #1305 by adding aggregation
Expand test coverage
member_id is owner_id on plantings
Argue with ActionView::Template::Error about what we can group on
Rename variable
|
2017-04-13 14:30:41 +12:00 |
|
Brenda Wallace
|
3791b34fe3
|
One planting per owner (used for intersetingness)
|
2017-03-28 22:39:03 +13:00 |
|
Brenda Wallace
|
5d58be110e
|
Fixed crop.interesting, no more duplicate crops
|
2017-03-28 19:33:34 +13:00 |
|
Shiny
|
b72a3d6942
|
Merge branch 'dev' into query-optimising
|
2017-03-24 18:31:18 +13:00 |
|
Brenda Wallace
|
804ac8662a
|
Rubocop fix ups
|
2017-03-24 17:29:39 +13:00 |
|
Brenda Wallace
|
1601e966ad
|
Planting.interesting is in a scope
|
2017-03-24 16:59:09 +13:00 |
|
Brenda Wallace
|
5e8ca392d2
|
Moved Member.interest near top of file
|
2017-03-24 16:45:55 +13:00 |
|
Brenda Wallace
|
815915d933
|
Loading child records of interesting crops
|
2017-03-24 16:45:36 +13:00 |
|
Brenda Wallace
|
0182a99654
|
Optimising Member.interesting
|
2017-03-24 16:28:37 +13:00 |
|
Brenda Wallace
|
998befb30f
|
Limited plantings to member's own garden, and approved crops
|
2017-03-16 15:29:25 +13:00 |
|
Arun Kumar
|
f7ec1826b0
|
Use presence instead of regex validation
|
2017-03-16 13:27:13 +13:00 |
|
Brenda Wallace
|
02de30f617
|
Reduced duplication of the term "approved" in crop model
|
2017-03-12 12:31:38 +13:00 |
|
Brenda Wallace
|
4eda3a506b
|
Fix up csv importer, should make duplicates
Now matches the old functionality.
|
2017-02-24 20:08:01 +13:00 |
|
Brenda Wallace
|
5abc1fb80e
|
duplicate alt name spec (and adding to crop)
|
2017-02-23 15:35:29 +13:00 |
|
Brenda Wallace
|
86d5f5febd
|
sciname/altnames adding code is very similar
|
2017-02-23 15:35:29 +13:00 |
|
Brenda Wallace
|
3d7f2ec20c
|
Updating specs to match new csv importer
|
2017-02-23 15:35:29 +13:00 |
|
Brenda Wallace
|
abbd2cf0a4
|
fix bug: look up parent crop by name in csv import
|
2017-02-23 15:35:29 +13:00 |
|
Brenda Wallace
|
3089c28233
|
Adding validations to sci names and alt names
|
2017-02-23 15:35:29 +13:00 |
|
Brenda Wallace
|
4e722dd123
|
Move crop csv import to own file
|
2017-02-23 15:35:29 +13:00 |
|
Brenda Wallace
|
21f11a4d5d
|
highest MethodLength is now 34
|
2017-02-17 09:26:30 +13:00 |
|
pozorvlak
|
22905235c1
|
Merge branch 'dev' into forums-controller
|
2017-02-16 12:41:20 +00:00 |
|
Brenda Wallace
|
076695d349
|
Added name presence validation to forum
|
2017-02-16 21:52:28 +13:00 |
|
Brenda Wallace
|
a4f8b3a0e6
|
Rubocop fix for MultilineHashBraceLayout
|
2017-02-16 12:20:32 +13:00 |
|
pozorvlak
|
43f9707c11
|
Merge branch 'dev' into bw/planting_slug
|
2017-02-12 15:21:41 +00:00 |
|