Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cherry-pick #248 to v3.0 #249

Merged
merged 1 commit into from
Jun 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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