jeremyboles-smart-asset-helper 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/rails/init.rb +14 -0
- metadata +2 -1
data/rails/init.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'action_view/helpers/smart_asset_helper'
|
2
|
+
require 'action_view/helpers/smarter_asset_tag_helper'
|
3
|
+
|
4
|
+
ActionView::Base.class_eval do
|
5
|
+
include ActionView::Helpers::SmartAssetHelper
|
6
|
+
include ActionView::Helpers::SmarterAssetTagHelper
|
7
|
+
end
|
8
|
+
|
9
|
+
ActionController::Base.class_eval do
|
10
|
+
before_filter :create_asset_manager_instance
|
11
|
+
def create_asset_manager_instance
|
12
|
+
@_asset_manager = AssetManager.new
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeremyboles-smart-asset-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Boles
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- lib/action_view/helpers/smart_asset_helper.rb
|
42
42
|
- lib/action_view/helpers/smarter_asset_tag_helper.rb
|
43
43
|
- lib/asset_manager.rb
|
44
|
+
- rails/init.rb
|
44
45
|
- test/small_asset_helper_test.rb
|
45
46
|
- test/test_helper.rb
|
46
47
|
- uninstall.rb
|