Commit Graph
30 Commits
Author SHA1 Message Date
google-labs-jules[bot]andCloCkWeRX abd5df606e Fix Photo.reindex errors in specs and controller
- Remove `Photo.reindex` calls from `spec/spec_helper.rb` and feature specs.
- Modify `LikesController` to conditionally call `reindex` only if the likeable object responds to it, preventing `NoMethodError` for non-indexed models like `Photo`.
- Remove unnecessary `:reindex` trait from photo factory call in `likeable_spec.rb`.

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>
2026-06-23 14:22:47 +00:00
Daniel O'Connor ed87d23ece Merge pull request #4560 from Growstuff/fix-i18n-locale-texts-16171345716630423189
Fix Rails/I18nLocaleTexts RuboCop errors
2026-04-26 13:36:10 +09:30
Daniel O'Connor 1176d18918 Ruby 3.2: Rubocop - Fix Lint/symbol conversion (#3781)
* Lint/SymbolConversion: Unnecessary symbol conversion; use error: instead.
2024-07-13 15:11:49 +09:30
Daniel O'Connor b24b9f82e6 Rubocop - auto corrections 2022-11-06 16:34:36 +10:30
Brenda Wallace d95cacc404 style fix ups 2020-01-10 13:39:57 +13:00
codefactor-io 7e30b6b6e0 [CodeFactor] Apply fixes 2020-01-03 11:28:51 +00:00
Brenda Wallace c4d02edbd1 force reindex after a like 2020-01-01 09:24:24 +13:00
Brenda Wallace de3c4d0f62 likes found in controller by id and type of likeable 2020-01-01 08:39:27 +13:00
codefactor-io f8916dfecb [CodeFactor] Apply fixes 2019-12-20 04:16:33 +00:00
Brenda Wallace 9d68ab0228 Rubocop fix of controller 2019-12-20 17:13:54 +13: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 af0d84d9f1 Updating likes js code 2019-07-12 09:28:45 +12:00
Brenda Wallace f638d0c2d3 rubocop lint 2019-07-08 20:03:27 +12:00
Brenda Wallace cbed8cc259 likes for photos 2019-07-08 20:00:55 +12:00
Brenda Wallace 7b01fcbd4b Align all the hashes 2018-12-30 15:22:29 +13:00
Brenda Wallace a00237dfcb Style fixes after rubocop upgrade 2018-04-02 15:48:16 +12:00
Brenda Wallace 87bc1becb0 Reduced repeating code in likes controller 2017-02-14 11:52:20 +13:00
Mackenzie Morgan c5439c8650 use symbols for status codes 2017-02-13 20:56:22 +13:00
Brenda Wallace b8e06a1d1d Specs for deleting someone else's like 2017-02-12 20:50:50 +13:00
Brenda Wallace fa0c00aa9c Named arg (liked_by_member) fixed
cos i was writing python when this is meant to be ruby
2017-02-12 17:37:32 +13:00
Brenda Wallace 72d0514e75 Further checks in likes controller 2017-02-12 15:33:54 +13:00
Brenda Wallace dc62365c7d DRY likes controller further 2017-02-12 15:23:58 +13:00
Brenda Wallace d8d94d178c Moved some of likes#destroy out to new methods 2017-02-12 15:23:58 +13:00
Brenda Wallace 6afb12c157 Split up big methods in like controller 2017-02-12 15:23:58 +13:00
Brenda Wallace a0be52fdaa likes doesn't have an index 2017-02-12 15:23:58 +13:00
Daniel O'Connor 88ba4f9198 Rubocop 2016-12-09 12:19:38 +10:30
Daniel O'Connor 8edbef3965 Rubocop 2016-12-09 11:56:53 +10:30
Daniel O'Connor 2e23675425 app/controllers/likes_controller.rb:2:3: C: Rails/ActionFilter: Prefer before_action over before_filter. 2016-12-09 11:52:46 +10:30
Daniel O'Connor 0a33ae8d37 Add an ajax like and unlike (though it hides after the user action) 2016-06-04 22:49:08 +09:30
Yoong Kang Lim 33a66dce1f Starting stages of a like feature for posts. 2015-02-05 00:54:31 +11:00