presents 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/lib/presents.rb
CHANGED
data/lib/presents/railtie.rb
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
module Presents
|
|
2
2
|
class Railtie < Rails::Railtie
|
|
3
3
|
initializer 'presents.include' do
|
|
4
|
-
|
|
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.
|
|
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
|