diff options
| author | hukl <contact@smyck.org> | 2009-08-09 14:45:12 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-08-09 14:45:12 +0200 |
| commit | 97aecb984afa6a7d8d1424f544b8e32d8c87603d (patch) | |
| tree | 8939b12d327875241179c07ac975871cabdb582c /app/models/menu_item.rb | |
| parent | 72593784d6d580ea8cc6987a83cf7b18167aba80 (diff) | |
added sorting (via drag and drop) and deleting of menu items. Its not perfect though and needs more styling. I'm unsure about the proper route for the sort action. Will investigate.
Diffstat (limited to 'app/models/menu_item.rb')
| -rw-r--r-- | app/models/menu_item.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/menu_item.rb b/app/models/menu_item.rb index 666fdf4..e86be0e 100644 --- a/app/models/menu_item.rb +++ b/app/models/menu_item.rb | |||
| @@ -2,4 +2,5 @@ class MenuItem < ActiveRecord::Base | |||
| 2 | 2 | ||
| 3 | translates :title | 3 | translates :title |
| 4 | 4 | ||
| 5 | acts_as_list | ||
| 5 | end | 6 | end |
