blob: 204a3d6c5cf528639ed5fe6d753d50280f49884a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class ChouetteController < BreadcrumbController
include ApplicationHelper
include BreadcrumbHelper
before_filter :switch_referential
def switch_referential
Apartment::Tenant.switch(referential.slug)
end
def referential
@referential ||= current_organisation.referentials.find params[:referential_id]
end
end
|