i18nline 0.0.12.alpha → 0.0.14.alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb08000b7fef601dcd48eb5e32aba417004a6f08
4
- data.tar.gz: 997123af7464b9c05514ff45c6cd13faf7796c1f
3
+ metadata.gz: 35edb4de635587c04f5ad1826c4b567542f8f4fb
4
+ data.tar.gz: 95b20bcade2bfa46a1fd6612575eaeea37ae7bc2
5
5
  SHA512:
6
- metadata.gz: 9023234837e8457a3552f796af47c1f68874e5f87cb35d35b686459103716183b590769aac269da65ddb93b62cb5cbead81081c86533b247063a816124720d65
7
- data.tar.gz: f1b787813474e08b7429bc354ce9cf4427e5c7f14c9a6c62b7fadcc83cd1dc6e387266af5e5520a5c55bacb54beded99e9424f4a9779c8fb5c63bf3755900db5
6
+ metadata.gz: 93ed4acc22009c68aaacdaa4f43b6624b6144af249177fd7c4673caa5543f0a5b93042f6870752abb19fb23ecd2508445929193b4d053159cb0a2de4258bdf8f
7
+ data.tar.gz: 9f9e4487cc8b1dd147c5d9878218b57eeff788846b484e19b06f60a1d0697f0228fe76017d0a97d04e029e2038160b24c72f8c90cbcabee567da278ccd5df388
@@ -8,7 +8,7 @@ module I18nline
8
8
  tokens = params[:key].split(".")
9
9
  locale_at_inline_key = tokens.delete_at(0)
10
10
  key = tokens.join(".")
11
- translations = Translation.where("key = ?", key)
11
+ translations = Translation.where(key: key)
12
12
  if translations.none?
13
13
  redirect_to :root, error: "Something went wrong. No translations found." and return
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module I18nline
2
- VERSION = "0.0.12.alpha"
2
+ VERSION = "0.0.14.alpha"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18nline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12.alpha
4
+ version: 0.0.14.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubén Díaz-Jorge Gil