Brenda Wallace
090bc02269
belongs_to defaults to required. setting some to optional
2018-01-04 14:55:36 +13:00
Brenda Wallace
b6c9b13d4d
Models inherit from application record
2018-01-03 17:16:14 +13:00
Brenda Wallace
3d3a3b669e
Order posts by most recent
2017-12-15 13:28:41 +13:00
Brenda Wallace
9e00023332
Fixed post ordering
2017-11-29 20:59:37 +13:00
Brenda Wallace
7719d1f896
Remote default ordering scopes, and clean up models
2017-11-29 20:59:37 +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
bbc3ca749f
Removed author_exists scope. It is part of default
2017-06-02 22:43:25 +12:00
Brenda Wallace
0b684eb05e
Checks owner exists, in default_scopes of many models
2017-05-26 23:00:06 +12:00
Brenda Wallace
d771bc3688
More railsy syntax in default scopes
2017-05-20 15:46:37 +12:00
Arun Kumar
f7ec1826b0
Use presence instead of regex validation
2017-03-16 13:27:13 +13:00
Brenda Wallace
ff50ec65d0
Merge remote-tracking branch 'upstream/dev' into HEAD
2017-01-22 18:26:29 +13:00
Brenda Wallace
f6cc0f3e13
rubocop compliance in post model
2017-01-14 20:34:08 +13:00
Brenda Wallace
5be5585084
Rubocop disable Rails/HasAndBelongsToMany
2017-01-14 20:31:34 +13:00
Daniel O'Connor
fef272e30f
Merge remote-tracking branch 'upstream/dev' into likeable
2016-12-09 11:42:32 +10:30
Brenda Wallace
aba06c1faf
Case insensitive crop look up
2016-12-01 21:29:28 +13:00
Brenda Wallace
dc504fe363
use Member.case_insensitive_login_name
2016-12-01 21:29:00 +13:00
Brenda Wallace
723ebff923
Spacing fixes
2016-11-26 12:13:17 +13:00
Brenda Wallace
62e7c716dd
Removed extra empty blank lines
2016-11-26 12:06:02 +13:00
Brenda Wallace
83392ddda1
Indentation clean ups
2016-11-26 10:51:54 +13:00
Brenda Wallace
bdb057ca0f
Removed all trailing white space
2016-11-14 15:05:32 +13:00
Daniel O'Connor
d3dac756d6
Merge remote-tracking branch 'upstream/dev' into likeable
2016-07-09 21:08:33 +09:30
Daniel O'Connor
efd112c4b8
And vs && - revised version of b50127c166
2016-07-08 17:01:59 +09:30
Mackenzie Morgan
5c7b760f34
Use array literal [] instead of Array.new
2016-07-08 16:58:34 +09:30
Mackenzie Morgan
81ae473972
space between comma-separated arguments
2016-07-08 16:58:29 +09:30
Daniel O'Connor
bb25cbe5e2
Merge branch 'dev' of github.com:Growstuff/growstuff into likeable
2016-06-04 21:00:52 +09:30
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
Daniel O'Connor
de8bcc38d3
#857 Add length validations to models
2016-04-03 00:13:38 +10:30
Savant Krishna
7ef1eb5852
Create a notification to all members mentioned in a post : Feature #505
2015-09-06 14:41:04 +10:00
Cjay Billones
bb88041fef
[Refactoring] Replace .count and .length with .size for collections
...
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections.
Fix error in refactoring
Reverted some .size into .count
2015-06-25 12:09:03 +08:00
Yoong Kang Lim
33a66dce1f
Starting stages of a like feature for posts.
2015-02-05 00:54:31 +11: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
Shiho Takagi
14d039ee01
Added crops-posts association as well as updated GUI for crop show
2014-10-05 13:32:08 +11:00
Skud
c109905cb0
fixed recent activity sorting for posts
2013-08-21 21:42:58 +10:00
Skud
ec80b01c7a
cleaning up tests on postgres
...
- still trying to make sure we explicitly use a real member, not just
assume there's one with id = 1
- also it looks like the tests for post activity are passing for obscure
reasons on sqlite when they shouldn't be. this is a known bug
(https://www.pivotaltracker.com/story/show/51280861 ) apparently
invisible to us under sqlite.
2013-07-08 12:18:51 +10:00
gnattery
9d4caaa2b5
Do validation for empty and spaces-only strings
2013-04-30 12:23:17 +01:00
Miles Gould
16605b82b6
Merge branch "notifications".
2013-02-22 13:40:58 +00:00
Joseph Caudle
6b37bbc8da
Fix intermittent build failure due to timezones
...
Because our default timezone for the app is UTC, at certain times, some
tests could fail outside of UTC. This commit fixes that by changing a
single call to Time.now to Time.zone.now.
2013-02-21 22:29:36 -05:00
Skud
0aab5286f0
General prettification and making it look nice.
...
Also upgraded Bootstrap, just for the hell of it.
2013-02-20 15:42:44 +11:00
Skud
cc2c63b2eb
added cancan abilities for reading notifications
2013-02-15 23:17:52 +11:00
Skud
a0955d2bfc
post in (or not in) a forum
2013-02-14 11:46:25 +11:00
gnattery
de85a6dcce
added associations between forums, posts, and members
2013-02-13 15:17:40 +11:00
Skud
d37e7a148d
Delete comments when post is deleted
2013-02-08 17:45:37 +11:00
gnattery
6da3e4fae5
Added associations and tested them
2013-02-06 15:20:44 +11:00
Skud
df76f2497a
renamed Post.member_id to Post.author
2013-01-13 20:57:28 +11:00
Skud
689448f87c
renamed Member.username to login_name
2013-01-13 19:14:46 +11:00
Skud
657ccf7cd8
s/users/members/g -- models and tests for them
2013-01-13 17:24:46 +11:00
Skud
21f0f39bf9
Model and controller spec files pass.
...
Views are another matter (and will explode badly at this point)
2013-01-13 16:12:45 +11:00