app/helpers/nyulibraries/assets/institution_helper.rb
# Rails helper module for institutions
module Nyulibraries
module Assets
module InstitutionHelper
require 'institutions'
# Get the stylesheet base on the current institution.
def institutional_stylesheet
stylesheet_link_tag institution.views["css"]
end
def views
institution.views
end
def institution
current_primary_institution
end
def default_institution
@default_institution ||= Institutions.defaults.first
end
end
end
end