cirandas.net

ref: master

plugins/sub_organizations/lib/sub_organizations_plugin/relation_helper.rb


1
2
3
4
5
6
7
8
9
module SubOrganizationsPlugin::RelationHelper
  def display_relation(organization,type,display_mode)
    if display_mode == 'full'
      render :partial => 'sub_organizations_plugin_profile/full_related_organizations', :locals => {:organizations => organization,:organization_type => type}
    else
      render :partial => 'sub_organizations_plugin_profile/related_organizations', :locals => {:organizations => organization, :organization_type => type}
    end
  end
end