lib/powerstar.rb in powerstar-0.1.2 vs lib/powerstar.rb in powerstar-0.1.3
- old
+ new
@@ -6,9 +6,9 @@
class Error < StandardError; end
# Your code goes here...
def self.root(a,b)
return a*b
end
- class User
- validate :name,presence:true
+ class User < ApplicationRecord
+ validates :name,presence:true
end
end