cruj_cruj_cruj 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/cruj_cruj_cruj_controller.rb +6 -0
- data/lib/cruj_cruj_cruj/version.rb +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: 880815c873a933717509cc84e1b097a1ce90e04d
|
4
|
+
data.tar.gz: 2623dfa7fc8a60531b5b65a5c31996318372badb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43a0ed033f0604ba91f28aec85dbc7fe4c3485bed2cae43a827e032d864a518861ed93695a41470695d18405034cd80da6ea25ceccd9e09c83d94b2d51d9ddc4
|
7
|
+
data.tar.gz: 707698baf4d7a2445eaf16bc74b6844bfb4ec53e98f34e485f4ce224ba9b3810aae1380ee0cac2cd8e326547b39a46c2bfece9ed01cea74c68b6420e66a36a5d
|
@@ -1,4 +1,6 @@
|
|
1
1
|
class CrujCrujCrujController < ApplicationController
|
2
|
+
include ActionView::Helpers::NumberHelper
|
3
|
+
|
2
4
|
before_action :before_index, only: [:index]
|
3
5
|
before_action :find_all_resources, only: [:index]
|
4
6
|
|
@@ -90,6 +92,10 @@ class CrujCrujCrujController < ApplicationController
|
|
90
92
|
t(:false_field)
|
91
93
|
end
|
92
94
|
|
95
|
+
def format_field_fixnum(field)
|
96
|
+
number_with_delimiter(field)
|
97
|
+
end
|
98
|
+
|
93
99
|
def filter_for(attribute)
|
94
100
|
if attribute.is_a? Array
|
95
101
|
send("filter_for_enum", attribute[0], attribute[1])
|