thecore_print_commons 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/print_template.rb +3 -0
- data/lib/thecore_print_commons/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: 62e90843f6877080a3acf29a144dc73c0aa7fa13
|
4
|
+
data.tar.gz: 878fa8df3a6ebc7e906465b4e8f2da480f27a8c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f5468ac6422c4205056c02664a7f041ab8b4a1de9834749f164efc10a858a441088e95eec4827ee1345c5a663409e68bb89f9527bf9e6e4a35ff4e7e62c406
|
7
|
+
data.tar.gz: 93fafa9b3d21b5774763e33c2e9fd142c98fedfa1eb039e3660a5c7f7eccbe23e630e7b54f2075bc12be930d8727f65fd11cf61d0d5c836c4e00047fd26cdcd1
|
@@ -1,6 +1,9 @@
|
|
1
1
|
class PrintTemplate < ApplicationRecord
|
2
2
|
has_many :printers, inverse_of: :print_template
|
3
3
|
|
4
|
+
validates :name, presence: true
|
5
|
+
validates :template, presence: true
|
6
|
+
|
4
7
|
# def translate args
|
5
8
|
# # Rails.logger.info("COME CAZZO SEI FATTO? #{args.inspect}")
|
6
9
|
# temp = template.clone
|