fresh-jquery 2.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fresh-jquery/engine.rb +15 -0
- data/lib/fresh-jquery/sprockets.rb +3 -0
- data/lib/fresh-jquery.rb +7 -0
- data/vendor/assets/javascripts/jquery.js +8842 -0
- data/vendor/assets/javascripts/jquery.min.js +6 -0
- metadata +50 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
module FreshJquery
|
2
|
+
class Engine < Rails::Engine
|
3
|
+
# Block to add paths
|
4
|
+
add_paths_block = lambda { |app|
|
5
|
+
app.config.assets.paths <<
|
6
|
+
File.expand_path("../../../vendor/assets/javascripts", __FILE__)
|
7
|
+
}
|
8
|
+
|
9
|
+
# Initializer
|
10
|
+
initializer "fresh-jquery.update_asset_paths", &add_paths_block
|
11
|
+
|
12
|
+
# For precompilation
|
13
|
+
initializer "fresh-jquery.update_asset_paths", :group => :assets, &add_paths_block
|
14
|
+
end
|
15
|
+
end
|