class Guard::Interactor
def scopes_from_entry(entry)
-
(Hash)
- a hash with a Guard or a group scope
Parameters:
-
entry
(String
) -- the possible scope entry
def scopes_from_entry(entry) scopes = { } if guard = ::Guard.guards(entry) scopes[:guard] = guard end if group = ::Guard.groups(entry) scopes[:group] = group end scopes end