graph_starter 0.6.2 → 0.6.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7ac9279e5dab5c536514d8cf61bc16548bdff3a
4
- data.tar.gz: a2d83d9cb07bc829cf3d801ae0807e12c6896400
3
+ metadata.gz: abe93e3b4485fb11e6b234575e8956264806d8a0
4
+ data.tar.gz: 8ea84aec1685d6a9579d5cf6771e8ca7fb3a8374
5
5
  SHA512:
6
- metadata.gz: fd023ba0acc4a0719ac257244cfb52aca43afa7a8088d3996ea27e61e4ab388a9241bc9ead8390e761f02380f279599162fdfd7f6269bcb42a1d36baf53db71b
7
- data.tar.gz: e8ea82d6f9d71ecfbe2192cf25949319daaa0051d43e7d8df3acd6473c9f83a3f430dcebc8d199b69e000da65494fc98b5e91dbf82bf100d18f704e009d78fc9
6
+ metadata.gz: 0648dcc302d23cb371ee7aaebf85ffd275715a0021e4de5705ae90513db2bda5397c3eae3e2b7c7ba5a1aec49faf10811b29c0a2113bfcd173a07ba60a003a2e
7
+ data.tar.gz: 49e4d8570fb841d8d025cb8903463eab61c3e9a799216d4109e04fecdf8125e3ef75c80d121c12d628895a8ec3898853d8999791a9b73ab913b17ce31758678a
@@ -4,7 +4,7 @@ module GraphStarter
4
4
  end
5
5
 
6
6
  def index
7
- @assets = asset_set
7
+ @assets = asset_set.to_a
8
8
  end
9
9
 
10
10
  def search
@@ -9,15 +9,9 @@
9
9
  .ui.divider
10
10
 
11
11
  javascript:
12
- var controller = #{@model_slug.to_json.html_safe}
12
+ $('.ui.search').search({onSelect: function (result, response) { window.location.replace(result.url) }})
13
13
 
14
- coffee:
15
- $('.ui.search').search
16
- onSelect: (result, response) ->
17
- window.location.replace(result.url)
18
-
19
- $.fn.api.settings.api =
20
- search: "/#{controller}/search/{query}.json"
14
+ $.fn.api.settings.api = {search: "/#{@model_slug}/search/{query}.json"}
21
15
 
22
16
  - count = @assets.size
23
17
  - total_count = @model_class_scope.count
@@ -1,3 +1,3 @@
1
1
  module GraphStarter
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood