fresh-jquery 2.0.2.1

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.
@@ -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
@@ -0,0 +1,3 @@
1
+ require 'sprockets'
2
+
3
+ Sprockets.append_path File.expand_path("../../../vendor/assets/javascripts", __FILE__)
@@ -0,0 +1,7 @@
1
+ module FreshJquery
2
+ if defined?(Rails)
3
+ require "fresh-jquery/engine"
4
+ elsif defined?(Sprockets)
5
+ require "fresh-jquery/sprockets"
6
+ end
7
+ end