You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Isn't validation supposed to validate either attributes who aren't stored in riak ?
It seems they are not.
require 'ripple'
class User
include Ripple::Document
attr_accessor :password
validates :password, presence: true, on: :create
end
u = User.new
u.new? #=> true
u.valid? #=> true
The text was updated successfully, but these errors were encountered:
Isn't validation supposed to validate either attributes who aren't stored in riak ?
It seems they are not.
The text was updated successfully, but these errors were encountered: