diff options
Diffstat (limited to 'app/controllers/autocomplete_timebands_controller.rb')
| -rw-r--r-- | app/controllers/autocomplete_timebands_controller.rb | 10 | 
1 files changed, 1 insertions, 9 deletions
| diff --git a/app/controllers/autocomplete_timebands_controller.rb b/app/controllers/autocomplete_timebands_controller.rb index 3915bd69f..4922e214c 100644 --- a/app/controllers/autocomplete_timebands_controller.rb +++ b/app/controllers/autocomplete_timebands_controller.rb @@ -1,15 +1,7 @@  class AutocompleteTimebandsController < InheritedResources::Base    respond_to :json, :only => [:index] -  before_action :switch_referential - -  def switch_referential -    Apartment::Tenant.switch!(referential.slug) -  end - -  def referential -    @referential ||= current_organisation.referentials.find params[:referential_id] -  end +  include ReferentialSupport    protected | 
