2017-05-31 18:42:52 +05:30
|
|
|
class OrganizationsController < ApplicationController
|
|
|
|
|
load_and_authorize_resource :organization
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
@organizations = Organization.all
|
|
|
|
|
end
|
2017-10-11 20:22:32 -07:00
|
|
|
|
|
|
|
|
def conferences
|
|
|
|
|
@current = @organization.conferences.upcoming.reorder(start_date: :asc)
|
|
|
|
|
@antiquated = @organization.conferences.past
|
|
|
|
|
render '/conferences/index'
|
|
|
|
|
end
|
2017-05-31 18:42:52 +05:30
|
|
|
end
|