Sha256: c65d0630bb2b56d053146ab341ec0295a797cf4eff415f9f65b782aad48986f0

Contents?: true

Size: 222 Bytes

Versions: 23

Compression:

Stored size: 222 Bytes

Contents

module Adminpanel
  module SortableActions
    extend ActiveSupport::Concern

    def move_to_position
      @resource_instance.move_to_position(params[:position].to_i)
      render json: { status: :ok }
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
adminpanel-3.6.1 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.6.0 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.5.1 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.5.0 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.4.7 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.4.6 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.4.5 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.4.4 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.4.3 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.4.2 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.4.1 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.4.0 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.3.4 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.3.3 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.3.0 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.2.1 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.2.0 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.1.0 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-3.0.0 app/controllers/concerns/adminpanel/sortable_actions.rb
adminpanel-2.6.1 app/controllers/concerns/adminpanel/sortable_actions.rb