jananganamana 0.3.0 → 0.3.2
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 +4 -11
- 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: 66a3bfcc919c376984a306a6bcf27fc2896deb8c34967abd033f125a8381d63c
|
4
|
+
data.tar.gz: a1fed439e43c4bd909fbfb82fdc904f4f2935d92756a3f5fca6653a57b4e5aa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5af781ea7e2f4433bb731c6c0067e495767f704dcfca8c25d57a79df56d8a8c9410ba883c9e199ea95c3cc8b9dfaa9684be41136787383e3648ca41344d227cb
|
7
|
+
data.tar.gz: 9f719dd38ba2f8bc085c881122c5c3dce0debaf8b38f0d80963389fb438b79052e972077b14017230f540943610e5ee9b74b8de73ab6e62dbb58fefcea670725
|
data/lib/jananganamana.rb
CHANGED
@@ -1,21 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "jananganamana/version"
|
4
|
-
#
|
4
|
+
# require_relative "ApplicationRecord"
|
5
5
|
module Jananganamana
|
6
6
|
class Error < StandardError; end
|
7
|
-
|
8
|
-
# class Ganesh1
|
9
|
-
|
10
|
-
# def self.ganesh
|
11
|
-
# puts "ganesh"
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
class User1 include ActiveModel::Model #< ApplicationRecord
|
7
|
+
class User < ApplicationRecord
|
15
8
|
# belongs_to :user
|
16
|
-
|
9
|
+
validates :name,presence:true
|
17
10
|
# validates :email,presence:true
|
18
11
|
# attr_accessor :name, :age
|
19
|
-
validates_presence_of :name
|
12
|
+
# validates_presence_of :name
|
20
13
|
end
|
21
14
|
end
|