Sha256: a399e66d82a9cf42c96129aad33571ce51619f5cfbc8d7af5625daa04c106dc1
Contents?: true
Size: 453 Bytes
Versions: 12
Compression:
Stored size: 453 Bytes
Contents
class NiiTypesController < InheritedResources::Base respond_to :html, :json before_filter :check_client_ip_address load_and_authorize_resource def update @nii_type = NiiType.find(params[:id]) if params[:position] @nii_type.insert_at(params[:position]) redirect_to nii_types_url return end update! end private def interpolation_options {:resource_name => t('activerecord.models.nii_type')} end end
Version data entries
12 entries across 12 versions & 1 rubygems