refinerycms-portfolio 0.9.5.2 → 0.9.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/config/routes.rb +8 -8
- data/rails/init.rb +1 -1
- data/readme.md +2 -2
- metadata +2 -2
data/config/routes.rb
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
ActionController::Routing::Routes.draw do |map|
|
2
2
|
|
3
|
+
map.resources :portfolio do |portfolio|
|
4
|
+
portfolio.resources :portfolio, :as => :portfolio
|
5
|
+
end
|
6
|
+
|
7
|
+
map.namespace(:admin) do |admin|
|
8
|
+
admin.resources :portfolio_entries, :as => :portfolio, :collection => {:emancipate => :get}
|
9
|
+
end
|
10
|
+
|
3
11
|
if RefinerySetting.table_exists? and RefinerySetting.find_or_set(:multi_level_portfolio, true)
|
4
12
|
map.portfolio_project "/portfolio/:id/projects/:portfolio_id", :controller => "portfolio", :action => "show"
|
5
13
|
map.portfolio_image "/portfolio/:id/projects/:portfolio_id/:image_id", :controller => "portfolio", :action => "show"
|
@@ -10,12 +18,4 @@ ActionController::Routing::Routes.draw do |map|
|
|
10
18
|
|
11
19
|
map.portfolio "/portfolio/:id/", :controller => 'portfolio', :action => 'show'
|
12
20
|
|
13
|
-
map.resources :portfolio do |portfolio|
|
14
|
-
portfolio.resources :portfolio, :as => :portfolio
|
15
|
-
end
|
16
|
-
|
17
|
-
map.namespace(:admin) do |admin|
|
18
|
-
admin.resources :portfolio_entries, :as => :portfolio, :collection => {:emancipate => :get}
|
19
|
-
end
|
20
|
-
|
21
21
|
end
|
data/rails/init.rb
CHANGED
@@ -3,7 +3,7 @@ Refinery::Plugin.register do |plugin|
|
|
3
3
|
plugin.title = "Portfolio"
|
4
4
|
plugin.description = "Manage a portfolio"
|
5
5
|
plugin.url = "/admin/#{plugin.title.downcase}"
|
6
|
-
plugin.version = '0.9.5.
|
6
|
+
plugin.version = '0.9.5.3'
|
7
7
|
plugin.menu_match = /admin\/portfolio(_entries)?/
|
8
8
|
plugin.activity = {
|
9
9
|
:class => PortfolioEntry,
|
data/readme.md
CHANGED
@@ -28,14 +28,14 @@ Then run:
|
|
28
28
|
|
29
29
|
Then place in your config/environment.rb (or config/application.rb for refinery 0.9.6.x) file before all other Refinery gem calls:
|
30
30
|
|
31
|
-
config.gem "refinerycms-portfolio", :version => ">= 0.9.5.
|
31
|
+
config.gem "refinerycms-portfolio", :version => ">= 0.9.5.3", :lib => "portfolio", :source => "http://gemcutter.org"
|
32
32
|
|
33
33
|
..and follow the instructions!
|
34
34
|
|
35
35
|
### Method Two
|
36
36
|
Place in your config/environment.rb (or config/application.rb for refinery 0.9.6.x) file before all other Refinery gem calls:
|
37
37
|
|
38
|
-
config.gem "refinerycms-portfolio", :version => ">= 0.9.5.
|
38
|
+
config.gem "refinerycms-portfolio", :version => ">= 0.9.5.3", :lib => "portfolio", :source => "http://gemcutter.org"
|
39
39
|
|
40
40
|
Then run in your application's directory:
|
41
41
|
|