1
0

inline_rabl_scope.rb 229 B

1234567891011121314151617
  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