corn_starch 1.3.40 → 1.3.41
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f026cef6f4663ce5d8e205be1254f1716831cb69
|
4
|
+
data.tar.gz: 1ef58b06e258c2b8aa26b387a45086616237e4a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb52ec3967fff7eef6cf5d6cdc346a8205262027f1d3dd3ebdd90f60f5e3aa3678e5ae20fc36d8ccea48c971e60ad7b0bbc99cd2863508efb63e9e8c71e737b2
|
7
|
+
data.tar.gz: 83c2e01832b0f932794284fa32f39575a175cf8cbc0290392bde00ca09b72003f2ffac69d53b901a7205c77d6b382acb96b0d23ffd4e8533edf469326f277fde
|
@@ -22,6 +22,13 @@ module CornStarch
|
|
22
22
|
# Include all Helpers
|
23
23
|
helper CornStarch.helpers
|
24
24
|
|
25
|
+
# Default URL Options
|
26
|
+
def default_url_options options = {}
|
27
|
+
|
28
|
+
# Include Locale in all generated URLs
|
29
|
+
{ locale: I18n.locale }.merge options
|
30
|
+
end
|
31
|
+
|
25
32
|
# Private
|
26
33
|
private
|
27
34
|
|
@@ -119,13 +126,6 @@ module CornStarch
|
|
119
126
|
params[:id] == current_user.id.to_s
|
120
127
|
end
|
121
128
|
|
122
|
-
# Default URL Options
|
123
|
-
def default_url_options options = {}
|
124
|
-
|
125
|
-
# Include Locale in all generated URLs
|
126
|
-
{ locale: I18n.locale }.merge options
|
127
|
-
end
|
128
|
-
|
129
129
|
# Get Records
|
130
130
|
def get_records model, params
|
131
131
|
paginate unisearch(model, params[:search]), params
|
data/lib/corn_starch/version.rb
CHANGED