Skip to content

Commit

Permalink
Fix some leftover refactoring from an earlier modification to enterpr…
Browse files Browse the repository at this point in the history
…ises controller (now not needed as moved to admin/enterprises)
  • Loading branch information
stveep committed Dec 23, 2016
1 parent 8eab84a commit f4d5f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/enterprises_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class EnterprisesController < BaseController
def relatives
respond_to do |format|
format.json do
enterprises = enterprise.andand.relatives.andand.activated
enterprises = @enterprise.andand.relatives.andand.activated
render(json: enterprises,
each_serializer: Api::EnterpriseSerializer,
data: OpenFoodNetwork::EnterpriseInjectionData.new)
Expand All @@ -42,7 +42,7 @@ def check_permalink
private

def set_enterprise
enterprise = Enterprise.find(params[:id])
@enterprise = Enterprise.find(params[:id])
end

def clean_permalink
Expand Down

0 comments on commit f4d5f70

Please sign in to comment.