闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
229 B

  1. # frozen_string_literal: true
  2. class InlineRablScope
  3. include RoutingHelper
  4. def initialize(account)
  5. @account = account
  6. end
  7. def current_user
  8. @account.try(:user)
  9. end
  10. def current_account
  11. @account
  12. end
  13. end