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