navigation_builder 1.0.0.beta3 → 1.0.0.beta4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.beta3
1
+ 1.0.0.beta4
@@ -153,14 +153,8 @@ module ActionView
153
153
  class Base
154
154
  cattr_accessor :default_navigation_builder
155
155
  self.default_navigation_builder = ::ActionView::Helpers::NavigationBuilder
156
+
157
+ include NavigationBuilderHelper
156
158
  end
157
159
 
158
160
  end
159
-
160
- # For Rails 3?
161
- # ActiveSupport.on_load(:action_view) do
162
- # class ActionView::Base
163
- # cattr_accessor :default_navigation_builder
164
- # @@default_navigation_builder = ::ActionView::Helpers::NavigationBuilder
165
- # end
166
- # end
@@ -1,9 +1,6 @@
1
- if defined?(Rails) && Rails.version.to_i == 3
2
- # TODO: Rails 3 Support
3
- else
4
- class ActionView::Base
5
- autoload :NavigationBuilderHelper, 'action_view/helpers/navigation_builder'
1
+ require 'action_view/helpers'
6
2
 
7
- include NavigationBuilderHelper
8
- end
9
- end
3
+ module ActionView::Helpers
4
+ autoload :NavigationBuilderHelper, 'action_view/helpers/navigation_builder'
5
+ autoload :NavigationBuilder, 'action_view/helpers/navigation_builder'
6
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{navigation_builder}
8
- s.version = "1.0.0.beta3"
8
+ s.version = "1.0.0.beta4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Derek Lindahl"]
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navigation_builder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196357
4
+ hash: 62196363
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - beta
11
- - 3
12
- version: 1.0.0.beta3
11
+ - 4
12
+ version: 1.0.0.beta4
13
13
  platform: ruby
14
14
  authors:
15
15
  - Derek Lindahl