21 lines
636 B
Ruby
21 lines
636 B
Ruby
class Admin::VenueManagementAgreementsController < OrbitAdminController
|
|
|
|
def initialize
|
|
super
|
|
@app_title = 'venue_management'
|
|
end
|
|
|
|
def index
|
|
@venue_management_agreement = VenueManagementAgreement.first || VenueManagementAgreement.create
|
|
@url = admin_venue_management_agreement_path(@venue_management_agreement)
|
|
end
|
|
|
|
def update
|
|
@venue_management_agreement = VenueManagementAgreement.first
|
|
@venue_management_agreement.update_attributes(params.require(:venue_management_agreement).permit!)
|
|
|
|
redirect_to admin_venue_management_agreements_path, notice: t('venue_management.save_success')
|
|
end
|
|
|
|
end
|