jeremyboles-smart-asset-helper 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/init.rb +1 -14
- metadata +1 -1
data/init.rb
CHANGED
@@ -1,14 +1 @@
|
|
1
|
-
require '
|
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
|
1
|
+
require File.dirname(__FILE__) + '/rails/init'
|