supports_controller.rb revision 66fc38f7d1e6f38b7f0c46daed44f54e344d45ff
#
# Controller for Supports
#
class SupportsController < PrivilegeList::Base
belongs_to :logic, :language, :polymorphic => true
protected
def authorize_parent
#not needet! but has to be implemented for PrivilegeList
end
def relation_list
@relation_list ||= RelationList.new [parent, :supports],
:model => Support,
:collection => parent.supports,
:association => :language,
:scope => [Language]
end
end