lib/jananganamana.rb in jananganamana-0.3.0 vs lib/jananganamana.rb in jananganamana-0.3.1

- old
+ new

@@ -1,18 +1,18 @@ # frozen_string_literal: true require_relative "jananganamana/version" -# require "application_record" +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 + class User1 < ApplicationRecord # belongs_to :user # validates :name,presence:true # validates :email,presence:true # attr_accessor :name, :age validates_presence_of :name