Class: OrganizationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/organizations_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#add_breadcrumb, #after_sign_in_path_for, #breadcrumbs, #new_session_path, #require_admin_user

Instance Method Details

#indexObject



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

#showObject



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