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