presents 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.0.2 / 2012-09-25
2
+
3
+ * 1 bug fix:
4
+
5
+ * fix rails include issue.
6
+
7
+
1
8
  === 1.0.1 / 2012-09-25
2
9
 
3
10
  * 1 bug fix:
data/Manifest.txt CHANGED
@@ -4,8 +4,8 @@ Manifest.txt
4
4
  README.txt
5
5
  Rakefile
6
6
  lib/presents.rb
7
+ lib/presents/action_view_extension.rb
7
8
  lib/presents/aggregate_presenter.rb
8
- lib/presents/application_helper_methods.rb
9
9
  lib/presents/base_presenter.rb
10
10
  lib/presents/railtie.rb
11
11
  test/test_presents.rb
data/lib/presents.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Presents
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
4
4
 
5
5
  Dir.glob(File.dirname(__FILE__) + '/presents/*.rb') { |file| require file }
@@ -1,5 +1,5 @@
1
1
  module Presents
2
- module ApplicationHelperMethods
2
+ module ActionViewExtension
3
3
 
4
4
  # Public: Render a context in the view to wrap a model with a presenter.
5
5
  #
@@ -1,7 +1,9 @@
1
1
  module Presents
2
2
  class Railtie < Rails::Railtie
3
3
  initializer 'presents.include' do
4
- ApplicationHelper.send :include, Presents::ApplicationHelperMethods
4
+ ActiveSupport.on_load(:action_view) do
5
+ ::ActionView::Base.send :include, Presents::ActionViewExtension
6
+ end
5
7
  end
6
8
  end
7
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presents
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -123,8 +123,8 @@ files:
123
123
  - README.txt
124
124
  - Rakefile
125
125
  - lib/presents.rb
126
+ - lib/presents/action_view_extension.rb
126
127
  - lib/presents/aggregate_presenter.rb
127
- - lib/presents/application_helper_methods.rb
128
128
  - lib/presents/base_presenter.rb
129
129
  - lib/presents/railtie.rb
130
130
  - test/test_presents.rb