# frozen_string_literal: true require_relative "jananganamana/version" # require "application_record" module Jananganamana class Error < StandardError; end # Your code goes here... # class Ganesh1 # def self.ganesh # puts "ganesh" # end # end class User1 include ActiveModel::Model #< ApplicationRecord # belongs_to :user # validates :name,presence:true # validates :email,presence:true # attr_accessor :name, :age validates_presence_of :name end end