admin_data 1.0.13 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ === 2010-10-12 v1.0.14
2
+ * use the new way of routing. remove deprecation
3
+
1
4
  === 2010-09-22 v1.0.11
2
5
  * fix for pagination not working in chrome
3
6
  * css cleanup
data/config/routes.rb CHANGED
@@ -1,34 +1,29 @@
1
- Rails.application.routes.draw do |map|
1
+ Rails.application.routes.draw do
2
2
 
3
- map.namespace(:admin_data) do |admin_data|
4
-
5
- admin_data.with_options :controller => 'main' do |m|
6
- m.index '/', :action => 'all_models'
7
- end
3
+ namespace(:admin_data) do
8
4
 
9
- admin_data.with_options :controller => 'migration' do |m|
10
- m.migration_information '/migration', :action => 'index'
11
- m.jstest '/jstest', :action => 'jstest'
12
- end
5
+ match '/' => "main#all_models", :as => :index
13
6
 
14
- admin_data.with_options :controller => 'feed' do |m|
15
- m.feed '/feed/:klasss', :action => 'index',
16
- :format => :rss
17
- end
7
+ match '/migration' => "migration#index", :as => :migration_information
8
+ match '/jstest' => "migration#jstest", :as => :jstest
18
9
 
19
- admin_data.with_options :controller => 'search' do |m|
20
- m.search '/quick_search/:klass', :action => 'quick_search'
21
- m.advance_search '/advance_search/:klass', :action => 'advance_search'
22
- end
10
+ match '/feed/:klasss' => "feed#index", :defaults => { :format =>'rss' }, :as => :feed
23
11
 
12
+ match '/quick_search/:klass' => "search#quick_search", :as => :search
13
+ match '/advance_search/:klass' => "search#advance_search", :as => :advance_search
14
+ end
24
15
 
25
- admin_data.resources :on_k,
26
- :as => ':klass',
27
- :path_prefix => 'admin_data/klass',
28
- :controller => 'main',
29
- :member => {:del => :delete},
30
- :collection => {:table_structure => :get}
31
-
16
+ scope '/admin_data' do
17
+ match '/klass/:klass/table_structure' => "admin_data/main#table_structure", :as => :table_structure_admin_data_on_k, :via => :get
18
+ match '/klass/(:klass(.:format))' => "admin_data/main#index", :as => :admin_data_on_k_index, :via => :get
19
+ match '/klass/(:klass(.:format))' => "admin_data/main#create", :as => :admin_data_on_k_index, :via => :post
20
+
21
+ match '/klass/:klass/new' => "admin_data/main#new", :as => :new_admin_data_on_k, :via => :get
22
+ match '/klass/:klass/:id/del' => "admin_data/main#del", :as => :del_admin_data_on_k, :via => :delete
23
+ match '/klass/:klass/:id/edit' => "admin_data/main#edit", :as => :edit_admin_data_on_k, :via => :get
24
+ match '/klass/:klass/:id' => "admin_data/main#show", :as => :admin_data_on_k, :via => :get
25
+ match '/klass/:klass/:id' => "admin_data/main#update", :as => :admin_data_on_k, :via => :put
26
+ match '/klass/:klass/:id' => "admin_data/main#destroy", :as => :admin_data_on_k, :via => :delete
32
27
  end
33
28
 
34
- end
29
+ end
@@ -1,3 +1,3 @@
1
1
  module AdminData
2
- VERSION = '1.0.13'
2
+ VERSION = '1.0.14'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_data
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 13
10
- version: 1.0.13
9
+ - 14
10
+ version: 1.0.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Neeraj Singh