Skip to content

Commit

Permalink
Merge pull request #248 from imas/fix/can-not-register-new-account
Browse files Browse the repository at this point in the history
デフォルトタグに含まれる大文字を小文字にした
  • Loading branch information
takayamaki authored Jun 7, 2020
2 parents fb20f71 + d10b6d9 commit 3852435
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/lib/friends/favourite_tags_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ module FavouriteTagsExtension
DEFAULT_TAGS = [
"デレラジ",
"デレパ",
"imas_MOR",
"imas_mor",
"millionradio",
"SideM",
"sidem",
].freeze

def add_default_favourite_tag
DEFAULT_TAGS.each_with_index do |tag_name, i|
self.favourite_tags.create!(visibility: 'unlisted', tag: Tag.find_or_create_by!(name: tag_name), order: (DEFAULT_TAGS.length - i))
end
end

end
end
end

0 comments on commit 3852435

Please sign in to comment.