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
@@ -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
- @@applications[name] = datastore.app(name)
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)
@@ -1,3 +1,3 @@
1
1
  module Excursion
2
- VERSION = '0.0.18'
2
+ VERSION = '0.0.19'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excursion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: