<commit_before># RailsAdmin Order Items

This gem is a custom collection action for Rails Admin that permits items reordering for your models from the admin, and getting them back with in the right order inside your frontend.

## Usage

In your Gemfile :

```ruby
gem "rails_admin_order_items", :git => "<EMAIL>:vala/rails_admin_order_items.git"
```

In your Rails Admin initializer : config/initializers/rails_admin.rb

```ruby
RailsAdmin.config do |config|
  # Add actions config block
  config.actions do
    dashboard
    index
    new
    export
    history_index
    bulk_delete
    show
    edit
    delete
    history_show
    show_in_app
    # Add the order_items action
    order_items
  end
end
```<commit_msg>Add migrations installation in README<commit_after># RailsAdmin Order Items

This gem is a custom collection action for Rails Admin that permits items reordering for your models from the admin, and getting them back with in the right order inside your frontend.

## Usage

In your Gemfile :

```ruby
gem "rails_admin_order_items", :git => "<EMAIL>:vala/rails_admin_order_items.git"
```

Bundle and install migration and migrate :

```bash
bundle install
rake rails_admin_order_items_engine:install:migrations
rake db:migrate
```

In your Rails Admin initializer : config/initializers/rails_admin.rb

```ruby
RailsAdmin.config do |config|
  # Add actions config block
  config.actions do
    dashboard
    index
    new
    export
    history_index
    bulk_delete
    show
    edit
    delete
    history_show
    show_in_app
    # Add the order_items action
    order_items
  end
end
```
{'fraction_non_alphanumeric': 0.060907395898073334, 'fraction_numerical': 0.0, 'mean_word_length': 3.7633136094674557, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6281702', 'n_tokens_mistral': 503, 'n_tokens_neox': 470, 'n_words': 175}