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

Version Path
enju_nii-0.1.0.pre10 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre9 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre8 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre7 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre6 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre5 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre4 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre3 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre2 app/controllers/nii_types_controller.rb
enju_nii-0.1.0.pre app/controllers/nii_types_controller.rb
enju_nii-0.0.4 app/controllers/nii_types_controller.rb
enju_nii-0.0.3 app/controllers/nii_types_controller.rb