osem-fcy/app/controllers/organizations_controller.rb

22 lines
522 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-05-31 18:42:52 +05:30
class OrganizationsController < ApplicationController
load_and_authorize_resource :organization
def index
@organizations = Organization.all
end
2018-03-16 12:18:09 -07:00
def code_of_conduct
@title = "#{@organization.name}: Code of Conduct"
@content = @organization.code_of_conduct
render 'document'
end
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