Sha256: 6ebeaea06fe54660165fcd241726cf03f574394960d090617e71e5716e09bb5d

Contents?: true

Size: 256 Bytes

Versions: 4

Compression:

Stored size: 256 Bytes

Contents

class HostedEvents::DiscountsController < ApplicationController
  before_action :set_event
  include LazyCrud

  set_resource_parent Event
  set_param_whitelist(:name, :amount)


  def set_event
    @event = Event.find(params[:hosted_event_id])
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lazy_crud-0.9.8.4 spec/support/rails_app/app/controllers/hosted_events/discounts_controller.rb
lazy_crud-0.9.8.3 spec/support/rails_app/app/controllers/hosted_events/discounts_controller.rb
lazy_crud-0.9.8.2 spec/support/rails_app/app/controllers/hosted_events/discounts_controller.rb
lazy_crud-0.9.8.1 spec/support/rails_app/app/controllers/hosted_events/discounts_controller.rb