dynamic_menu 2.0.2 → 3.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/Rakefile +32 -17
- data/lib/dynamic_menu/base.rb +17 -0
- data/lib/dynamic_menu/inheritable_menus.rb +10 -0
- data/lib/dynamic_menu/version.rb +3 -0
- data/lib/dynamic_menu.rb +6 -26
- data/lib/engine.rb +6 -8
- data/lib/generators/dynamic_menu/install_generator.rb +9 -0
- data/lib/tasks/dynamic_menu_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/javascripts/tests.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/tests.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/tests_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/tests_helper.rb +2 -0
- data/test/dummy/app/menus/posts/basic_menu.rb +3 -0
- data/test/dummy/app/menus/posts/edit_menu.rb +3 -0
- data/test/dummy/app/menus/tests/index.rb +8 -0
- data/test/dummy/app/models/test.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/tests/index.html.erb +5 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +57 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130701143737_create_tests.rb +9 -0
- data/test/dummy/db/schema.rb +22 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1525 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/tests.yml +7 -0
- data/test/dummy/test/functional/tests_controller_test.rb +7 -0
- data/test/dummy/test/models/test_test.rb +7 -0
- data/test/dummy/test/unit/helpers/tests_helper_test.rb +4 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/032e248be6eea6bc08d9f4e7545bdb87 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1af8985855dd1d94073a535d054d703e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5e3c87da2440127e7053354c20c25b1e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a928392a6eef213eb3bdcf61fdff30f6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ad14978905c55a37b0ff34c6d01da15c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fb73ad3c1bb98bc69153c7f8a81f41aa +0 -0
- data/test/dynamic_menu_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +168 -30
- data/Manifest +0 -4
- data/README.md +0 -57
- data/dynamic_menu.gemspec +0 -30
@@ -0,0 +1,57 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
resources :tests
|
3
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
4
|
+
# See how all your routes lay out with "rake routes".
|
5
|
+
|
6
|
+
# You can have the root of your site routed with "root"
|
7
|
+
# root 'welcome#index'
|
8
|
+
|
9
|
+
# Example of regular route:
|
10
|
+
# get 'products/:id' => 'catalog#view'
|
11
|
+
|
12
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
13
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
14
|
+
|
15
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
16
|
+
# resources :products
|
17
|
+
|
18
|
+
# Example resource route with options:
|
19
|
+
# resources :products do
|
20
|
+
# member do
|
21
|
+
# get 'short'
|
22
|
+
# post 'toggle'
|
23
|
+
# end
|
24
|
+
#
|
25
|
+
# collection do
|
26
|
+
# get 'sold'
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
|
30
|
+
# Example resource route with sub-resources:
|
31
|
+
# resources :products do
|
32
|
+
# resources :comments, :sales
|
33
|
+
# resource :seller
|
34
|
+
# end
|
35
|
+
|
36
|
+
# Example resource route with more complex sub-resources:
|
37
|
+
# resources :products do
|
38
|
+
# resources :comments
|
39
|
+
# resources :sales do
|
40
|
+
# get 'recent', on: :collection
|
41
|
+
# end
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Example resource route with concerns:
|
45
|
+
# concern :toggleable do
|
46
|
+
# post 'toggle'
|
47
|
+
# end
|
48
|
+
# resources :posts, concerns: :toggleable
|
49
|
+
# resources :photos, concerns: :toggleable
|
50
|
+
|
51
|
+
# Example resource route within a namespace:
|
52
|
+
# namespace :admin do
|
53
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
54
|
+
# # (app/controllers/admin/products_controller.rb)
|
55
|
+
# resources :products
|
56
|
+
# end
|
57
|
+
end
|
Binary file
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20130701143737) do
|
15
|
+
|
16
|
+
create_table "tests", force: true do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.datetime "created_at"
|
19
|
+
t.datetime "updated_at"
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
File without changes
|