summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-02 21:38:50 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-02 21:38:50 -0800
commit647ff6240ef5e8256a44b126aa7573812d5e70b7 (patch)
treeb4a431759feb83b18eb88581b46b8e5321ff90fb /config
parent7d48205c1a472c07969e4dc43965fa3090b84376 (diff)
downloadgitlab-ce-647ff6240ef5e8256a44b126aa7573812d5e70b7.tar.gz
Rubocop: Style/ElseAlignment enabled
Diffstat (limited to 'config')
-rw-r--r--config/initializers/acts_as_taggable_on_patch.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/initializers/acts_as_taggable_on_patch.rb b/config/initializers/acts_as_taggable_on_patch.rb
index baa77fde392..e7a7728636d 100644
--- a/config/initializers/acts_as_taggable_on_patch.rb
+++ b/config/initializers/acts_as_taggable_on_patch.rb
@@ -42,11 +42,12 @@ module ActsAsTaggableOn::Taggable
elsif options.delete(:any)
# get tags, drop out if nothing returned (we need at least one)
- tags = if options.delete(:wild)
- ActsAsTaggableOn::Tag.named_like_any(tag_list)
- else
- ActsAsTaggableOn::Tag.named_any(tag_list)
- end
+ tags =
+ if options.delete(:wild)
+ ActsAsTaggableOn::Tag.named_like_any(tag_list)
+ else
+ ActsAsTaggableOn::Tag.named_any(tag_list)
+ end
return empty_result unless tags.length > 0