lib/jananganamana.rb in jananganamana-0.3.1 vs lib/jananganamana.rb in jananganamana-0.3.2
- old
+ new
@@ -1,21 +1,14 @@
# frozen_string_literal: true
require_relative "jananganamana/version"
-require "application_record"
+# require_relative "ApplicationRecord"
module Jananganamana
class Error < StandardError; end
- # Your code goes here...
- # class Ganesh1
-
- # def self.ganesh
- # puts "ganesh"
- # end
- # end
- class User1 < ApplicationRecord
+ class User < ApplicationRecord
# belongs_to :user
- # validates :name,presence:true
+ validates :name,presence:true
# validates :email,presence:true
# attr_accessor :name, :age
- validates_presence_of :name
+ # validates_presence_of :name
end
end