How ivanyv/activeadmin_reorderable works
Component Relationships
a) Core Components:
• It to:
• DSL Module (lib/active_admin/reorderable/dsl.rb)
• Table Methods Module (lib/active_admin/reorderable/table_methods.rb)
• View Components:
• IndexAsReorderableTable
• ReorderableTableFor
b) Asset Pipeline:
• JavaScript Component (activeadmin_reorderable.js)
• Stylesheet Component (activeadmin_reorderable.scss)
• Their integration with ActiveAdmin's asset pipeline
Data Flow
• Configuration flow from DSL to view components
• JavaScript event handling for drag-and-drop operations
• Model updates through the insert_at API
Implementation Details
Notes showing:
• Required model interface (insert_at method)
• Asset inclusion requirements
• Configuration options
Specific Elements
┌─ ActiveAdmin Framework ─────────────────┐
• ┌─ ActiveAdmin Reorderable ────────┐ │
• Engine │ │
• DSL Extensions │ │
• Table Methods │ │
• View Components │ │
• ┘ │
• ┌─ Asset Pipeline ─────────────────┐ │
• JavaScript │ │
• Stylesheets │ │
• ┘ │
• ┘
Integration Points
Clear connection points for:
• How the gem hooks into ActiveAdmin
• Where assets are injected
• Model integration points
• View template integration