jananganamana 0.2.9 → 0.3.1
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 +6 -4
- 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: 5adb01fe677d7ba0da1a2856b17a1f7bcf13bb19cacd69d80ee44c2c95da16ee
|
4
|
+
data.tar.gz: 5a74ddd2e463f84012d224e296bd4c7f8a36fd096d6c79af98026325746bf8b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be03252d0293a14ff6344cc0ea2fae80d1e6ade7ad04f5310d97962b0ccdb0dbc7de1eb1810ad7f11498ec1a7d68b951192c33f824b497abc01fc4b5adbf5db
|
7
|
+
data.tar.gz: dbeb7d3a7e2b5bd5ac65e800638f06386a0f8e06cc2b289d02f9f50384a662922ca6647494a9944f4003913d1db572bd6ebfee7f6fac3e349a5ea6c4f1bbda0b
|
data/lib/jananganamana.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "jananganamana/version"
|
4
|
-
|
4
|
+
require "application_record"
|
5
5
|
module Jananganamana
|
6
6
|
class Error < StandardError; end
|
7
7
|
# Your code goes here...
|
@@ -11,9 +11,11 @@ module Jananganamana
|
|
11
11
|
# puts "ganesh"
|
12
12
|
# end
|
13
13
|
# end
|
14
|
-
class User1
|
14
|
+
class User1 < 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
|