scaffold_pico 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/templates/pico/search.rb.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db999314a138c83372b024bb12aa24fa0d8ffd2c
|
4
|
+
data.tar.gz: 06b51f2ecb4f590dec20f30a27ba122f1b6ec181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 858219492d605912c41b702d98ddfc80e320afd89e94eb1a63246e4f1f1ce68f22ce767945710488f59de04749d02a6b10dfb3c4c80a25eb436148f69e4caa7b
|
7
|
+
data.tar.gz: 3bc2d99ea61606324f136d9b8ef1852ae94095612eafe9534910573b38e9b69ba61c41143f7b061bf66080656368b416a0b6fa2d8c69f872d97fe77b0bc3116b
|
@@ -25,7 +25,7 @@ class <%= @search_modulized_resource_class_name %>
|
|
25
25
|
def results
|
26
26
|
<%= @resource_name %> = @relation
|
27
27
|
|
28
|
-
<%= @resource_name %> = @relation.order("updated_at")
|
28
|
+
<%= @resource_name %> = @relation.order("updated_at") if <%= @modulized_resource_class_name %>.respond_to?(:updated_at)
|
29
29
|
|
30
30
|
if valid?
|
31
31
|
<% @fields.select {|k,v| @search_fields.include?(k) }.each_pair do |field_name, field_type| %>
|