Sha256: 63df9d1b4f02293dc5d75d4829a631f33ea59c2e7c387cc6926a321e8c4535bc
Contents?: true
Size: 344 Bytes
Versions: 7
Compression:
Stored size: 344 Bytes
Contents
class UseRestrictionsController < InheritedResources::Base respond_to :html, :json load_and_authorize_resource def update @use_restriction = UseRestriction.find(params[:id]) if params[:position] @use_restriction.insert_at(params[:position]) redirect_to use_restrictions_url return end update! end end
Version data entries
7 entries across 7 versions & 1 rubygems