You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/models
Matt Jankowski 2cc3111a77 Expand spec coverage and refactor the `Account.find_` methods (#3485)
* Move specs for account finder methods to concern spec

* Move account finder methods to concern

* Improve spec wording

* Use more explicit comparison to ensure correct return value

* Add coverage for .find_local! and .find_remote!

* Add some methods to the finder

* Use arel on matching_username method

* Avoid ternary in matching domain method

* Simplify finder methods

* Use an AccountFinder class to simplify lookup
7 years ago
..
concerns Expand spec coverage and refactor the `Account.find_` methods (#3485) 7 years ago
form
web
account.rb Expand spec coverage and refactor the `Account.find_` methods (#3485) 7 years ago
account_domain_block.rb
account_filter.rb
application_record.rb
block.rb
conversation.rb
conversation_mute.rb
domain_block.rb
export.rb
favourite.rb
feed.rb
follow.rb Introduce recent to Follow (#3247) 8 years ago
follow_request.rb
import.rb
media_attachment.rb
mention.rb
mute.rb
notification.rb Remove arguments in association reader (#3305) 8 years ago
preview_card.rb
remote_follow.rb
report.rb
report_filter.rb
setting.rb Refactor Setting (#3302) 8 years ago
status.rb Extract authorization policy for viewing statuses (#3150) 8 years ago
stream_entry.rb Cover AccountsController more in spec (#3229) 8 years ago
subscription.rb
tag.rb
user.rb Refactor User and spec (#3431) 7 years ago
web.rb