excursion 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module Excursion
|
|
2
2
|
module Helpers
|
3
3
|
module JavascriptHelper
|
4
4
|
def render_excursion_javascript_helpers
|
5
|
-
content_tag :script, raw("Excursion.loadPool(#{raw Excursion::Pool.all_applications.map(&:to_cache).to_json});"), type: "text/javascript"
|
5
|
+
content_tag :script, raw("Excursion.loadPool(#{raw Excursion::Pool.all_applications.values.map(&:to_cache).to_json});"), type: "text/javascript"
|
6
6
|
end
|
7
7
|
|
8
8
|
end
|
data/lib/excursion/pool.rb
CHANGED
@@ -17,7 +17,8 @@ module Excursion
|
|
17
17
|
def self.application(name)
|
18
18
|
return @@applications[name] if @@applications.has_key?(name) && !@@applications[name].nil?
|
19
19
|
|
20
|
-
|
20
|
+
app = datastore.app(name)
|
21
|
+
@@applications[name] = app unless app.nil?
|
21
22
|
end
|
22
23
|
|
23
24
|
def self.register_application(app=nil, opts={}, &block)
|
data/lib/excursion/version.rb
CHANGED