makandra-navy 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,9 +11,15 @@ module Navy
11
11
  module ClassMethods
12
12
 
13
13
  def default_active_sections
14
- @default_active_sections
14
+ @default_active_sections_with_ancestors ||= begin
15
+ sections = @default_active_sections || []
16
+ if superclass.respond_to?(:default_active_sections)
17
+ sections += superclass.default_active_sections
18
+ end
19
+ sections
20
+ end
15
21
  end
16
-
22
+
17
23
  private
18
24
 
19
25
  def in_sections(*sections)
data/lib/navy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Navy
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makandra-navy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Kraze
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-07-19 00:00:00 +02:00
19
+ date: 2012-08-27 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency