Sha256: 5a94cbaed6aad015a6a9e85af45fe3300cc25e7bddcfa7bd332fa636c094c2b3

Contents?: true

Size: 374 Bytes

Versions: 5

Compression:

Stored size: 374 Bytes

Contents

module FieldTest
  class MembershipsController < BaseController
    def update
      membership = FieldTest::Membership.find(params[:id])
      membership.update_attributes(membership_params)
      redirect_to participant_path(membership.participant)
    end

    private

      def membership_params
        params.require(:membership).permit(:variant)
      end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
field_test-0.2.4 app/controllers/field_test/memberships_controller.rb
field_test-0.2.3 app/controllers/field_test/memberships_controller.rb
field_test-0.2.2 app/controllers/field_test/memberships_controller.rb
field_test-0.2.1 app/controllers/field_test/memberships_controller.rb
field_test-0.2.0 app/controllers/field_test/memberships_controller.rb