lib/jananganamana.rb in jananganamana-0.1.7 vs lib/jananganamana.rb in jananganamana-0.1.8
- old
+ new
@@ -9,10 +9,10 @@
def self.ganesh
puts "ganesh"
end
end
- class User
+ class User < ApplicationRecord
validates :name,presence:true
validates :email,presence:true
end
end