undercarriage 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 896cd3cd3468873467c28f021f5379e7042f28b9d6fedd1f726d21db4d2b3305
|
4
|
+
data.tar.gz: 75e2c2d35fdfe1bdbf4bfa5ae6bcbc59d8e1d2b33f905976b61d90206afe7a1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d7a1cc57db69d47fe238a659277d3a12f7dc2a7c170df836af4ac16646ee144a49164c9510b30d96e06cc9208305bd50b0d3bd0c5c2864c9f829b31308ef714
|
7
|
+
data.tar.gz: 87e852138ca62f7a2e0bf4fd54385c228810d49f8a40ef77846dc15a8fee99577a1e0eb6e0ec8cd78c7b43a68d994e40ec0bb60abf77ae39aba2f30bf442c745
|
data/lib/undercarriage.rb
CHANGED
@@ -18,13 +18,10 @@ require 'undercarriage/controllers/restful/permitted_attributes_concern'
|
|
18
18
|
require 'undercarriage/controllers/restful/utility_concern'
|
19
19
|
require 'undercarriage/models/published_concern'
|
20
20
|
|
21
|
-
require 'undercarriage/railtie'
|
22
|
-
|
23
21
|
##
|
24
22
|
# Undercarriage
|
25
23
|
#
|
26
24
|
# Undercarriage is a set of concerns to add to your application to trim some of the fat from controllers and models.
|
27
25
|
#
|
28
26
|
module Undercarriage
|
29
|
-
# Your code goes here...
|
30
27
|
end
|
@@ -75,7 +75,7 @@ module Undercarriage
|
|
75
75
|
preferred_locales = (accepted_languages_header << I18n.default_locale.to_s).uniq
|
76
76
|
available_locales = I18n.available_locales.map(&:to_s)
|
77
77
|
|
78
|
-
preferred_locales
|
78
|
+
(preferred_locales & available_locales).first
|
79
79
|
end
|
80
80
|
|
81
81
|
def accepted_languages_header
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: undercarriage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Freerksen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -54,7 +54,6 @@ files:
|
|
54
54
|
- lib/undercarriage/controllers/restful/utility_concern.rb
|
55
55
|
- lib/undercarriage/controllers/restful_concern.rb
|
56
56
|
- lib/undercarriage/models/published_concern.rb
|
57
|
-
- lib/undercarriage/railtie.rb
|
58
57
|
- lib/undercarriage/version.rb
|
59
58
|
homepage: https://github.com/dfreerksen/undercarriage
|
60
59
|
licenses:
|