recordselect 3.9.1 → 3.9.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39316811206d9b93b95f08928b3f2fa84f1f8aea
|
|
4
|
+
data.tar.gz: 3ba41c4b7d82e76e945e0cdc6b191fa0e026bc02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cdd77053e962683595c9a6fc469952295431884eda80b4e9893d1b546bc9f79e7b33cff65f33fcfeab360efcbf49a7b466136cd6fb0ae4a7100d3e90de7f919
|
|
7
|
+
data.tar.gz: bf10fb693fa2a85e2bdf0aef2904a48d1837143f039103765a77884a12d096f8584a56bbc55da8bf7d5feced97725ec34a6daf86dca2a45e66211245ff5eed97
|
|
@@ -7,5 +7,5 @@ record_select_id = record_select_id(controller)
|
|
|
7
7
|
<%= render_record_select :partial => 'list', :locals => {:controller => controller, :page => @page, :record_select_id => record_select_id} %>
|
|
8
8
|
</div>
|
|
9
9
|
<%= javascript_tag do %>
|
|
10
|
-
<%=
|
|
11
|
-
<% end %>
|
|
10
|
+
<%= render_record_select(:partial => 'highlight', :formats => [:js]) %>
|
|
11
|
+
<% end %>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
RecordSelect.render_page('<%= record_select_id %>', '<%= escape_javascript(render_record_select(:partial => 'list', :locals => {:page => @page})) %>');
|
|
2
|
-
<%=
|
|
2
|
+
<%= render_record_select(:partial => 'highlight', :formats => [:js]) %>
|
|
@@ -53,12 +53,16 @@ module RecordSelect
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
def render_record_select(options = {}) #:nodoc:
|
|
56
|
-
[:template
|
|
56
|
+
[:template, :partial].each do |template_name|
|
|
57
57
|
if options[template_name] then
|
|
58
58
|
options[template_name] = File.join(record_select_views_path, options[template_name])
|
|
59
59
|
end
|
|
60
60
|
end
|
|
61
|
-
if block_given? then
|
|
61
|
+
if block_given? then
|
|
62
|
+
yield options
|
|
63
|
+
else
|
|
64
|
+
render options
|
|
65
|
+
end
|
|
62
66
|
end
|
|
63
67
|
|
|
64
68
|
private
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recordselect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.9.
|
|
4
|
+
version: 3.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergio Cambra
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2018-02-
|
|
13
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|