trackman 0.2.61 → 0.2.62
Sign up to get free protection for your applications and to get access to all the features.
@@ -28,16 +28,13 @@ module Trackman
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def init_env
|
31
|
-
#
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
# end
|
39
|
-
# paths << "#{working_dir}/public"
|
40
|
-
# paths.each{|p| env.append_path p }
|
31
|
+
#env = ::Rails.application.config.assets
|
32
|
+
env = ::Sprockets::Environment.new
|
33
|
+
paths = ['app', 'lib', 'vendor'].inject([]) do |array, f|
|
34
|
+
array + ["images", "stylesheets", "javascripts"].map{|p| "#{working_dir}/#{f}/assets/#{p}" }
|
35
|
+
end
|
36
|
+
paths << "#{working_dir}/public"
|
37
|
+
paths.each{|p| env.append_path p }
|
41
38
|
|
42
39
|
env
|
43
40
|
end
|
data/lib/trackman/version.rb
CHANGED