dynamic_query 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -0
- data/app/helpers/dynamic_query.erb +1 -1
- data/lib/dynamic_query/dynamic_query.erb +1 -1
- data/lib/dynamic_query/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -37,6 +37,9 @@ dq = dynamic_query(:list, :entry, :reveal_keys => true)
|
|
37
37
|
# a white list or a black list can be defined by following options
|
38
38
|
dq = dynamic_query(:list, :entry, :accept => { :list => [:name], :entry => [:title, :priority] }, :reject => { :entry => [:title] })
|
39
39
|
# only lists.name and entries.priority can be seen on the query panel because the white list gets higher precedence than the black list
|
40
|
+
|
41
|
+
## query panel is simply a rails form_tag which means it can accept the same hash options
|
42
|
+
<%= dynamic_query @panel, :remote => true %>
|
40
43
|
```
|
41
44
|
|
42
45
|
# Contributing to dynamic_query
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= form_tag(request.url,
|
1
|
+
<%= form_tag(request.url, { :method => :get, :style => 'text-align: center;' }.merge(opt)) %>
|
2
2
|
<% if panel %>
|
3
3
|
<table style="margin-left: auto; margin-right: auto;">
|
4
4
|
<% panel.select { |k, _| k =~ /^or_\d+$/ }.each_with_index do |(or_key, or_val), idx1| %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= form_tag(request.url,
|
1
|
+
<%= form_tag(request.url, { :method => :get, :style => 'text-align: center;' }.merge(opt)) %>
|
2
2
|
<% if panel %>
|
3
3
|
<table style="margin-left: auto; margin-right: auto;">
|
4
4
|
<% panel.select { |k, _| k =~ /^or_\d+$/ }.each_with_index do |(or_key, or_val), idx1| %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic_query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
segments:
|
145
145
|
- 0
|
146
|
-
hash: -
|
146
|
+
hash: -1236253421880578558
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
148
|
none: false
|
149
149
|
requirements:
|
@@ -155,5 +155,5 @@ rubyforge_project:
|
|
155
155
|
rubygems_version: 1.8.24
|
156
156
|
signing_key:
|
157
157
|
specification_version: 3
|
158
|
-
summary: dynamic_query-0.1.
|
158
|
+
summary: dynamic_query-0.1.2
|
159
159
|
test_files: []
|