Sha256: 6ca84b69babf03d077c6930436240a7ad62b88d3a280880113ed5d8c8924e835

Contents?: true

Size: 465 Bytes

Versions: 11

Compression:

Stored size: 465 Bytes

Contents

module Effective
  class EventRegistrationsController < ApplicationController

    if defined?(Devise)
      before_action :authenticate_user!, unless: -> { action_name == 'new' || (action_name == 'show' && params[:id] == 'start') }
    end

    include Effective::WizardController

    resource_scope -> {
      event = Effective::Event.find(params[:event_id])
      EffectiveEvents.EventRegistration.deep.where(owner: current_user, event: event)
    }

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
effective_events-0.9.1 app/controllers/effective/event_registrations_controller.rb
effective_events-0.9.0 app/controllers/effective/event_registrations_controller.rb
effective_events-0.8.0 app/controllers/effective/event_registrations_controller.rb
effective_events-0.7.4 app/controllers/effective/event_registrations_controller.rb
effective_events-0.7.3 app/controllers/effective/event_registrations_controller.rb
effective_events-0.7.2 app/controllers/effective/event_registrations_controller.rb
effective_events-0.7.1 app/controllers/effective/event_registrations_controller.rb
effective_events-0.7.0 app/controllers/effective/event_registrations_controller.rb
effective_events-0.6.13 app/controllers/effective/event_registrations_controller.rb
effective_events-0.6.12 app/controllers/effective/event_registrations_controller.rb
effective_events-0.6.11 app/controllers/effective/event_registrations_controller.rb