mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
13 lines
243 B
Ruby
13 lines
243 B
Ruby
# frozen_string_literal: true
|
|
|
|
module EnterpriseConcern
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
before_reflex do
|
|
@enterprise = Enterprise.find_by(permalink: params[:id])
|
|
authorize! :update, @enterprise
|
|
end
|
|
end
|
|
end
|