Class: OrganizationsController
Instance Method Summary
collapse
#add_breadcrumb, #after_sign_in_path_for, #breadcrumbs, #new_session_path, #require_admin_user
Instance Method Details
#index ⇒ Object
4
5
6
7
8
|
# File 'app/controllers/organizations_controller.rb', line 4
def index
@organizations = []
return if current_user.nil?
@organizations = Organization.list(session_id: current_user.mediaflux_session)
end
|
#show ⇒ Object
10
11
12
|
# File 'app/controllers/organizations_controller.rb', line 10
def show
@organization = Organization.get(params[:id], session_id: current_user.mediaflux_session)
end
|