Sha256: 0b234c500a0a21725c1b9c70ca3202b76a4c6a96488bb8dff8c706e9a6b3d9c8

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    def sortable_nested_set_for(category_type)
      resources category_type do
        member do
          get :sns_toggle
          get :sns_add_subcategory
          get :sns_add_item
          delete :sns_destroy_category
        end

        collection do
          put :sns_sort_categories
          put :sns_sort_items
        end
      end

      resources category_type.to_s.classify.constantize.sns_items_type do
        delete :sns_destroy_item, :on => :member, :controller => category_type
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sortable_nested_set-0.1.24 lib/sortable_nested_set/routes.rb