lib/jananganamana.rb in jananganamana-0.2.7 vs lib/jananganamana.rb in jananganamana-0.2.8

- old
+ new

@@ -1,18 +1,19 @@ # frozen_string_literal: true require_relative "jananganamana/version" - +require "ApplicationRecord" module Jananganamana class Error < StandardError; end # Your code goes here... - class Ganesh1 + # class Ganesh1 - def self.ganesh - puts "ganesh" - end - end - class User include ActiveModel::Model + # def self.ganesh + # puts "ganesh" + # end + # end + class User1 < ApplicationRecord + belongs_to :user validates :name,presence:true validates :email,presence:true end end