Sha256: 72e84b97912f18494f115491397ecce155731ed2aee3953b5e3d070ae0af8480

Contents?: true

Size: 825 Bytes

Versions: 72

Compression:

Stored size: 825 Bytes

Contents

class Admin::FestivityPerformancesController  < Admin::ResourceController
  def create
    event = FestivityEventPage.find(params[:event_page_id])
    performance = event.festivity_performances.new
    if performance.save
      render partial: 'admin/pages/partials/performance', :locals => {:performance => performance, :locations => FestivityLocationPage.where(site_id: event.site.id) }
    else
      render status: :bad_request
    end

  end

  def destroy
    performance = FestivityPerformance.find(params[:id])
    page_id = performance.festivity_event_page.id
    if performance.destroy
      render partial: 'admin/pages/partials/performances_table', :locals => { :performances => FestivityEventPage.find(page_id).festivity_performances, :page_id => page_id, locations: FestivityLocationPage.all}
    end
  end

end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.6.3 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.6.2 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.6.1 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.6 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.19 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.18 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.17 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.16 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.15 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.14 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.13 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.12 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.11 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.10 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.9 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.8 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.7 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.6 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.5 app/controllers/admin/festivity_performances_controller.rb
trusty-festivity-extension-2.5.4 app/controllers/admin/festivity_performances_controller.rb