jananganamana 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jananganamana/version.rb +1 -1
- data/lib/jananganamana.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bad5a217d9889e3957de1e288163bb88453d8a0772c3ec684f73fe23e72cdbed
|
4
|
+
data.tar.gz: ac65788799606af813ac4683032bc77f1162ac76c521a690d3d1ee223725dfc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eea73d460323cb9200ab65ed98ede5a481f7191ca4e65a5140b3a75663ab5126038ccdbd4b9a52fd9308d72cf9a00092975d0c518dae3c88ebc0cf705a095d6
|
7
|
+
data.tar.gz: cd1f7e49ad35d70a9dfb91e93cab5ef0efe86fbe90a6b97f63fa4f4531e1275e14411fc6db38d394383772f3b00b688d24da25cb46d5ef19e8c2b021d4003008
|
data/lib/jananganamana.rb
CHANGED
@@ -11,9 +11,11 @@ module Jananganamana
|
|
11
11
|
# puts "ganesh"
|
12
12
|
# end
|
13
13
|
# end
|
14
|
-
class User1 #< ApplicationRecord
|
14
|
+
class User1 include ActiveModel::Model #< ApplicationRecord
|
15
15
|
# belongs_to :user
|
16
|
-
validates :name,presence:true
|
17
|
-
validates :email,presence:true
|
16
|
+
# validates :name,presence:true
|
17
|
+
# validates :email,presence:true
|
18
|
+
# attr_accessor :name, :age
|
19
|
+
validates_presence_of :name
|
18
20
|
end
|
19
21
|
end
|