refinerycms 0.9.5.23 → 0.9.5.24

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5.23
1
+ 0.9.5.24
@@ -83,7 +83,7 @@ class Page < ActiveRecord::Base
83
83
  include_associations = [:parts]
84
84
  include_associations.push(:slugs) if self.class.methods.include? "find_one_with_friendly"
85
85
  include_associations.push(:children) if include_children
86
- find_all_by_parent_id(nil, :order => "position ASC", :include => include_associations)
86
+ find_all_by_parent_id(nil,:conditions => {:show_in_menu => true, :draft => false}, :order => "position ASC", :include => include_associations)
87
87
  end
88
88
 
89
89
  def [](part_title)
@@ -35,5 +35,8 @@ protected
35
35
  logger.warn "'#{current_user.login}' tried to access '#{params[:controller]}'"
36
36
  end
37
37
  end
38
+
39
+ # Override method from application_controller. Not needed in this controller.
40
+ def find_pages_for_menu; end
38
41
 
39
42
  end
@@ -58,7 +58,7 @@ protected
58
58
  end
59
59
 
60
60
  def find_pages_for_menu
61
- @menu_pages = Page.top_level(include_children=true) unless admin?
61
+ @menu_pages = Page.top_level(include_children=true)
62
62
  end
63
63
 
64
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5.23
4
+ version: 0.9.5.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Resolve Digital
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-12-08 00:00:00 +13:00
14
+ date: 2009-12-09 00:00:00 +13:00
15
15
  default_executable:
16
16
  dependencies: []
17
17