No collection push of organization needed anymore.
This commit is contained in:
parent
15a9145a21
commit
ea82574877
1 changed files with 0 additions and 19 deletions
|
@ -1,19 +0,0 @@
|
|||
class Sessions::Backend::Collections::Organization < Sessions::Backend::Collections::Base
|
||||
model_set 'Organization'
|
||||
|
||||
def load
|
||||
|
||||
# get whole collection
|
||||
all = []
|
||||
|
||||
if @user.organization_id
|
||||
organization = Organization.lookup(id: @user.organization_id)
|
||||
if organization
|
||||
all = [organization]
|
||||
end
|
||||
end
|
||||
|
||||
all
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in a new issue