google-labs-jules[bot]
8564ec7a7c
Add comments to photos ( #4130 )
...
* Add comments to photos
Extend the photo show page to support comments by logged in users.
- Make the Comment model polymorphic.
- Update the Photo and Post models to have comments.
- Update the comments controller to handle the polymorphic association.
- Update the photo show page to display comments and a comment form.
- Create a reusable comments partial.
* Add migration
* Fix tests
* Fix tests
* Slightly fix tests
* Fix variables
* Add field
* Refactor slightly
* Refactor slightly
* Refactor slightly
* Refactor
* Photos respond to this as well
* Refactor to polymorphic_url
* Rename
* Wrong relationship
* Refactor and fix tests
* Fix relationships
* Fix rendering
* Fix tests
* Fix model tests
* Fix test
* Fix test
* Fix test
* Fix test
* Fix controller spec
* Fix view tests
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com >
2025-08-24 21:10:16 +09:30
Daniel O'Connor
196b8078e6
Posts - Ensure responsive ( #3584 )
...
* Fix model validations and responsiveness
* Fix model validations and responsiveness
* Update app/models/post.rb
2024-01-21 16:05:14 +10:30
Daniel O'Connor
b24b9f82e6
Rubocop - auto corrections
2022-11-06 16:34:36 +10:30
Brenda Wallace
cebec27e80
Prefer ary[n..] over ary[n..-1].
2020-08-26 12:36:58 +12:00
Brenda
5573fbfbb6
foreign key declarations not needed anymore
2020-08-26 12:36:58 +12:00
Brenda Wallace
9dbf8b7c8f
New robocops
2020-08-26 12:36:58 +12:00
codefactor-io
4ff95fbac9
[CodeFactor] Apply fixes
2020-01-21 22:26:08 +13:00
codefactor-io
7e30b6b6e0
[CodeFactor] Apply fixes
2020-01-03 11:28:51 +00:00
Brenda Wallace
b2738afdc2
fake reindexer on posts, so it doesn't throw errors
2020-01-01 08:42:18 +13:00
codefactor-io
1882c75941
[CodeFactor] Apply fixes
2019-12-20 20:37:33 +00:00
Brenda Wallace
cae9fffea6
Index crop as well on photo changes
2019-12-21 09:36:52 +13:00
codefactor-io
e8760f9c38
[CodeFactor] Apply fixes
2019-12-20 03:33:23 +00:00
Brenda Wallace
04fd1a343a
Rubocop update ( #2334 )
...
* Update rubocop config
* Rubocop update - for rubocop 0.77
* [CodeFactor] Apply fixes
* rubocop fixes
* [CodeFactor] Apply fixes to commit 2826c2e
2019-12-16 22:35:33 +13:00
Brenda Wallace
fab9560c46
Apply suggestions from code review
2019-09-22 13:22:02 +12:00
Brenda Wallace
90035e79b8
Crop to post relationship made more rails standard
2019-09-22 10:07:50 +12:00
Brenda Wallace
67ce5265b4
Migrate from paranoia to discard
...
closes #1995
2019-07-21 16:59:06 +12:00
Brenda Wallace
5cef4d728c
Adding photos directly to a post
2019-07-08 13:20:57 +12:00
codefactor-io
4af8282a44
[CodeFactor] Apply fixes
2019-05-18 19:36:26 +00:00
Brenda Wallace
f019969240
Tidy up posts
2019-05-18 21:41:41 +12:00
Brenda Wallace
7b01fcbd4b
Align all the hashes
2018-12-30 15:22:29 +13:00
Brenda Wallace
fc0a941fb6
Adding more inverse relationships
2018-10-16 11:32:03 +13:00
Brenda Wallace
3ad048b7e8
Fixed linter issue, empty line after guard clause
2018-09-13 23:10:43 +12:00
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