Sha256: 4e11deaa7b6350f48e59917ffa8e683432b9a13613880e1421b2394b54f93f91

Contents?: true

Size: 355 Bytes

Versions: 14

Compression:

Stored size: 355 Bytes

Contents

module FieldTest
  class MembershipsController < BaseController
    def update
      membership = FieldTest::Membership.find(params[:id])
      membership.update!(membership_params)
      redirect_back(fallback_location: root_path)
    end

    private

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
field_test-0.7.0 app/controllers/field_test/memberships_controller.rb
field_test-0.6.1 app/controllers/field_test/memberships_controller.rb
field_test-0.6.0 app/controllers/field_test/memberships_controller.rb
field_test-0.5.5 app/controllers/field_test/memberships_controller.rb
field_test-0.5.4 app/controllers/field_test/memberships_controller.rb
field_test-0.5.3 app/controllers/field_test/memberships_controller.rb
field_test-0.5.2 app/controllers/field_test/memberships_controller.rb
field_test-0.5.1 app/controllers/field_test/memberships_controller.rb
field_test-0.5.0 app/controllers/field_test/memberships_controller.rb
field_test-0.4.1 app/controllers/field_test/memberships_controller.rb
field_test-0.4.0 app/controllers/field_test/memberships_controller.rb
field_test-0.3.2 app/controllers/field_test/memberships_controller.rb
field_test-0.3.1 app/controllers/field_test/memberships_controller.rb
field_test-0.3.0 app/controllers/field_test/memberships_controller.rb