Sha256: a4a02ae1b7c2b43acc4e4b07569a9a79bcd0ec8e6432bdc3fe9b190f961bd04b

Contents?: true

Size: 208 Bytes

Versions: 8

Compression:

Stored size: 208 Bytes

Contents

module EnjuEvent
  module Controller
    
    private

    def get_event
      if params[:event_id]
        @event = Event.find(params[:event_id])
        authorize @event, :show?
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_event-0.2.3 app/controllers/concerns/enju_event/controller.rb
enju_event-0.2.2 app/controllers/concerns/enju_event/controller.rb
enju_event-0.2.1 app/controllers/concerns/enju_event/controller.rb
enju_event-0.2.0 app/controllers/concerns/enju_event/controller.rb
enju_event-0.2.0.beta.4 app/controllers/concerns/enju_event/controller.rb
enju_event-0.2.0.beta.3 app/controllers/concerns/enju_event/controller.rb
enju_event-0.2.0.beta.2 app/controllers/concerns/enju_event/controller.rb
enju_event-0.2.0.beta.1 app/controllers/concerns/enju_event/controller.rb