ecm_translations2 2.1.1 → 3.0.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afe29eecd98a2979449084f1e16d976feddd13ab
|
|
4
|
+
data.tar.gz: 51c4b5cefd682a86115a2276966013e2c7565410
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ceb3d18ad2111776b3ac7f59cab725385aea2047419542dc86c531c0ec2ab85e5e0f9c2d20c46f6f018fc15cda82ba814ca3c665b1318dde374aa83272108984
|
|
7
|
+
data.tar.gz: 10150bd58bc41f6304da2c0046bf10560c269865e8062ab404ab7a643960bab94820353d23dd1f21b353362a523d708c799e648cc0ad1fc0cf5cf68fb46f1f53
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
module Ecm::Translations
|
|
2
2
|
class Translation < ActiveRecord::Base
|
|
3
3
|
|
|
4
|
+
# scopes
|
|
5
|
+
scope :not_translated, -> { where(value: nil) }
|
|
6
|
+
scope :is_proc, -> { where(is_proc: true) }
|
|
7
|
+
|
|
4
8
|
# validations
|
|
5
9
|
validates :locale, presence: true
|
|
6
10
|
validates :key, presence: true, uniqueness: { scope: :locale }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ecm_translations2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roberto Vasquez Angel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -341,3 +341,4 @@ signing_key:
|
|
|
341
341
|
specification_version: 4
|
|
342
342
|
summary: ECM Translations 2 Module.
|
|
343
343
|
test_files: []
|
|
344
|
+
has_rdoc:
|