AO3-4567 Minor fixes for ruby upgrades #2449

Merged
merged 4 commits into from Jul 25, 2016

3 participants

@zz9pzza

https://otwarchive.atlassian.net/browse/AO3-4567

These are minor fixes pointed out by the ruby upgrades

zz9pzza added some commits May 8, 2016
@zz9pzza zz9pzza Remove circular reference http://blog.vrinek.io/2015/01/15/ruby-2-2/ 93ba0dc
@zz9pzza zz9pzza Removed warning: duplicated key at line 419 ignored: :ratings
78b6e18
@houndci-bot houndci-bot commented on an outdated diff May 9, 2016
lib/html_cleaner.rb
@@ -184,8 +184,8 @@ def sanitize_value(field, value)
end
# grabbed from http://code.google.com/p/sanitizeparams/ and tweaked
- def sanitize_params(params = params)
- params = walk_hash(params) if params
+ def sanitize_params(new_params = params)
+ params = walk_hash(new_params) if new_params

Useless assignment to variable - params.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@zz9pzza zz9pzza changed the title from AO3-4567 to AO3-4567 Minor fixes for ruby upgrades May 9, 2016
@sarken sarken commented on an outdated diff May 11, 2016
app/controllers/devmode_controller.rb
@@ -408,7 +408,6 @@ def create_work(name, authors, ratings, warnings, characters, relationships, fan
:authors => authors,
:summary => summary,
:fandoms => fandoms,
- :ratings => ratings,
@sarken
Organization for Transformative Works member
sarken added a note May 11, 2016

Just for nitpicking's sake, I'd actually leave this one and remove the one on line 419 instead -- this one is more logically placed (it's with the other tag types).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@shalott
Organization for Transformative Works member

Looks good to me barring sarken's note

zz9pzza added some commits May 24, 2016
@zz9pzza zz9pzza listen to sarken c21ceea
@zz9pzza zz9pzza Listen to the hound
06fe16b
@sarken sarken merged commit 87b6da7 into otwcode:master Jul 25, 2016

2 checks passed

Details continuous-integration/travis-ci/pr The Travis CI build passed
hound No violations found. Woof!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment